We have now got our new PRI line (10 channels, 100 numbers) connected
and everything is working except the outgoing caller ID. Whatever
SIP phone I'm using, the CID that's shown is the very first number...
----- s n i p -----
[default]
include => outgoing
include => priin
[outgoing]
exten => _NXXXXX.,1,Macro(dial,08${EXTEN},${RINGTIME}) ; Local
number (w/o areacode) - Stockholm
exten => _0NX.,1,Macro(dial,${EXTEN},30,r)
[priin]
exten => _X.,1,Dial(IAX2/graham/${EXTEN},30,r)
[macro-dial]
exten => s,1,NoOp(Trying extension/number: ${ARG1} from ${CALLERID(num)})
;exten => s,n,Set(CALLERID(num)=${CALLERID(num)})
exten => s,n,Dial(Zap/g1/${ARG1},${RINGTIME},r)
exten => s,n,Playback(connection-failed)
exten => s,n,Congestion()
----- s n i p -----
This * is only for PRI connection. The actual routing is done
in an * installation running under a XEN domain...
Incoming works exactly as planed. So is the 'macro-dial'
with the exception that the numer shown in the receiving
end is '500' (the switchboard). This even if/when I call
from '528'...
Any ideas?
Turbo Fredriksson wrote:> We have now got our new PRI line (10 channels, 100 numbers) connected > and everything is working except the outgoing caller ID. Whatever > SIP phone I'm using, the CID that's shown is the very first number...I don't know if the same is true for you but we had to call our telco and have them set our callerid settings to 'station level'. Not sure if your telco offers this but they should.
I do this to tie extensions to a particular number:
exten => _9X./_2XXX,1,SET(CALLERID(all)=Manistee ISD<2317231516>)
exten => _9X./_1XXX,1,SET(CALLERID(all)=MISD Tecnology<2317234264>)
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Turbo
Fredriksson
Sent: Thursday, November 01, 2007 2:32 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Outgoing PRI CID?
We have now got our new PRI line (10 channels, 100 numbers) connected
and everything is working except the outgoing caller ID. Whatever
SIP phone I'm using, the CID that's shown is the very first number...
----- s n i p -----
[default]
include => outgoing
include => priin
[outgoing]
exten => _NXXXXX.,1,Macro(dial,08${EXTEN},${RINGTIME}) ; Local
number (w/o areacode) - Stockholm
exten => _0NX.,1,Macro(dial,${EXTEN},30,r)
[priin]
exten => _X.,1,Dial(IAX2/graham/${EXTEN},30,r)
[macro-dial]
exten => s,1,NoOp(Trying extension/number: ${ARG1} from
${CALLERID(num)})
;exten => s,n,Set(CALLERID(num)=${CALLERID(num)})
exten => s,n,Dial(Zap/g1/${ARG1},${RINGTIME},r)
exten => s,n,Playback(connection-failed)
exten => s,n,Congestion()
----- s n i p -----
This * is only for PRI connection. The actual routing is done
in an * installation running under a XEN domain...
Incoming works exactly as planed. So is the 'macro-dial'
with the exception that the numer shown in the receiving
end is '500' (the switchboard). This even if/when I call
from '528'...
Any ideas?
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
It is up to your carrier to permit you to send different Caller*ID.
Many carriers that let you send your own Caller*ID number (you can't
send Caller*ID Name) but if you send an invalid number, they will drop
the call or override the Caller*ID number with the primary number of
your PRI.
;exten => s,n,Set(CALLERID(num)=${CALLERID(num)})
This is the same as saying Set(FRED=${FRED}) It makes no sense to
assign the value of a variable to that same variable. I understand you
have this commented out, but I wanted to mention it.
exten => _X.,1,Dial(IAX2/graham/${EXTEN},30,r)
DO NOT EVER USE THE "r" OPTION TO DIAL UNLESS YOU KNOW WHAT YOU ARE
DOING!!!! Asterisk will provide ringing sound to the caller by default.
"r" overrides audio messages, busy sounds, "the cellular caller
you
are trying to reach is not available" messages, etc with a ringing sound.
Remember Caller*ID Number is either country code + area code + number or
area code + number. You never put a 1 or 0 at the beginning of the
number. CallerID Number also can not have spaces, dashes, or other crud.
Turbo Fredriksson wrote:> We have now got our new PRI line (10 channels, 100 numbers) connected
> and everything is working except the outgoing caller ID. Whatever
> SIP phone I'm using, the CID that's shown is the very first
number...
>
> ----- s n i p -----
> [default]
> include => outgoing
> include => priin
>
> [outgoing]
> exten => _NXXXXX.,1,Macro(dial,08${EXTEN},${RINGTIME}) ; Local
number (w/o areacode) - Stockholm
> exten => _0NX.,1,Macro(dial,${EXTEN},30,r)
>
> [priin]
> exten => _X.,1,Dial(IAX2/graham/${EXTEN},30,r)
>
> [macro-dial]
> exten => s,1,NoOp(Trying extension/number: ${ARG1} from
${CALLERID(num)})
> ;exten => s,n,Set(CALLERID(num)=${CALLERID(num)})
> exten => s,n,Dial(Zap/g1/${ARG1},${RINGTIME},r)
> exten => s,n,Playback(connection-failed)
> exten => s,n,Congestion()
> ----- s n i p -----
>
>
> This * is only for PRI connection. The actual routing is done
> in an * installation running under a XEN domain...
>
> Incoming works exactly as planed. So is the 'macro-dial'
> with the exception that the numer shown in the receiving
> end is '500' (the switchboard). This even if/when I call
> from '528'...
>
>
> Any ideas?
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>