[RESOLVED] Forwarding CallerID


I connect to my Asterisk (A) using SIP. My Asterisk (A) is connected to another Asterisk (B) using IAX (as explained in voip-info.org/wiki-Asterisk±+dual+servers Example2). Asterisk B is connected to a SIP Provider (SparVoip, a BetaMax.com spin-off) that supports transmission of the CallerID to the called party (PSTN).

I place calls from my Softphone through A and B to SparVoip. If I set the CallerID in B’s extensions, it is displayed on the called device. But if I set the CallerID in A, it is not forwarded/taken over in B.

How can I read the CallerID from A in B? How can I take over this CallerID in B?


show us your dialplan in B where it places the call with the ITSP … are you setting CID there ?

my dialplan in B is:

;exten => _00X.,1,Set(CALLERID(number)=00491791234567)
exten => _00X.,1,NoOp(${CALLERID(number)})
exten => _00X.,2,Dial(SIP/kgerald-sparvoip/${EXTEN})

if I uncomment line 1, the CID is correctly set.
if I comment line 1 and set the CID in A no CID is set in B

“kgerald-sparvoip” is my SIP user account

have a look at the ‘o’ option for Dial, this sets the CallerID on the called channel to be the same as the CallerID on the calling channel.

it still doesn’t work:

exten => _00X.,2,Dial(SIP/kgerald-sparvoip/${EXTEN},o)

Is there any possibility to read the CID on the inbound leg?
The outboung leg in B is still the IAX’s user name and number.

RESOLVED :smiley:

The channel specific parameter “callerid” was set in the iax.conf for Asterisk A.

well done. can you edit the subject of this thread from [HELP] to [RESOLVED] ?

what version of Asterisk are you using?