Freepbx replace the CID with extension

Hello,

We are using FreePBX 2.11.0.0beta2.2 with Asterisk 11.1.2

We encountered a weird error with the outbound CID when we wanted to perform an outgoing call whose target is another asterisk PBX, it actually showed the first allowed outgoing DID specified in our SIP provider trunk specifications.

Please note that when we call an external number (like a gsm or analog line) it shows the outbound CID set in our sip trunk (set to “Allow any CID”), not the extension outbound CID.

We found that even if we set the outbound CID we want on the extension, FreePBX just set the outbound CID by using the extension instead of the outbound CID that was specified.

Please find below the corresponding logs that will (I hope) enlighten you about our current problematic :

-- Executing [s@macro-user-callerid:3] ExecIf("SIP/10001-00000169", "1?Set(REALCALLERIDNUM=10001)") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/10001-00000169", "__DIAL_OPTIONS=Ttr") in new stack -- Executing [s@macro-user-callerid:9] Set("SIP/10001-00000169", "CALLERID(all)="iPFix Gilles" <123>") in new stack -- Executing [s@macro-user-callerid:27] Set("SIP/10001-00000169", "CALLERID(number)=123") in new stack

And here are the extention config:

Here is the complete log file:

Connected to Asterisk 11.1.2 currently running on ip-188-118-19-51 (pid = 7545)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [0476476513@ipfixCtx:1] Macro(“SIP/10001-00000169”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/10001-00000169”, “AMPUSER=10001”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/10001-00000169”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/10001-00000169”, “1?Set(REALCALLERIDNUM=10001)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/10001-00000169”, “AMPUSER=123”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/10001-00000169”, “AMPUSERCIDNAME=iPFix Gilles”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/10001-00000169”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/10001-00000169”, “AMPUSERCID=123”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/10001-00000169”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/10001-00000169”, “CALLERID(all)=“iPFix Gilles” <123>”) in new stack
– Executing [s@macro-user-callerid:10] GotoIf(“SIP/10001-00000169”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:11] ExecIf(“SIP/10001-00000169”, “1?Set(GROUP(concurrency_limit)=123)”) in new stack
– Executing [s@macro-user-callerid:12] GosubIf(“SIP/10001-00000169”, “7?sub-ccss,s,1(ipfixCtx,0476476513)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/10001-00000169”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/10001-00000169”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/10001-00000169”, “0?monitor_config,1(ipfixCtx,0476476513):monitor_default,1(ipfixCtx,0476476513)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/10001-00000169”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/10001-00000169”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/10001-00000169”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/10001-00000169”, “1?Set(CHANNEL(language)=fr)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/10001-00000169”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,27)
– Executing [s@macro-user-callerid:27] Set(“SIP/10001-00000169”, “CALLERID(number)=123”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/10001-00000169”, “CALLERID(name)=iPFix Gilles”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/10001-00000169”, “CDR(cnum)=123”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/10001-00000169”, “CDR(cnam)=iPFix Gilles”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/10001-00000169”, “CHANNEL(language)=fr”) in new stack
– Executing [0476476513@ipfixCtx:2] Set(“SIP/10001-00000169”, “INTRACOMPANYROUTE=YES”) in new stack
– Executing [0476476513@ipfixCtx:3] Set(“SIP/10001-00000169”, “MOHCLASS=default”) in new stack
– Executing [0476476513@ipfixCtx:4] ExecIf(“SIP/10001-00000169”, “0?Set(TRUNKCIDOVERRIDE=3228882448)”) in new stack
– Executing [0476476513@ipfixCtx:5] Set(“SIP/10001-00000169”, “_NODEST=”) in new stack
– Executing [0476476513@ipfixCtx:6] Gosub(“SIP/10001-00000169”, “sub-record-check,s,1(out,0476476513,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/10001-00000169”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“SIP/10001-00000169”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“SIP/10001-00000169”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“SIP/10001-00000169”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“SIP/10001-00000169”, “0?out,1”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/10001-00000169”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/10001-00000169”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/10001-00000169”, “NOW=1358854048”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/10001-00000169”, “__DAY=22”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/10001-00000169”, “__MONTH=01”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/10001-00000169”, “__YEAR=2013”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/10001-00000169”, “__TIMESTR=20130122-122728”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/10001-00000169”, “__FROMEXTEN=123”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/10001-00000169”, “__CALLFILENAME=out-0476476513-123-20130122-122728-1358854048.1193”) in new stack
– Executing [s@sub-record-check:21] Goto(“SIP/10001-00000169”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/10001-00000169”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/10001-00000169”, “0?record,1(exten,0476476513,123)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/10001-00000169”, “”) in new stack
– Executing [0476476513@ipfixCtx:7] Macro(“SIP/10001-00000169”, “dialout-trunk,2,0476476513,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/10001-00000169”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/10001-00000169”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/10001-00000169”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/10001-00000169”, “DIAL_NUMBER=0476476513”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/10001-00000169”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/10001-00000169”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/10001-00000169”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/10001-00000169”, “1?skipoutcid”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/10001-00000169”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/10001-00000169”, “OUTNUM=0476476513”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/10001-00000169”, “custom=SIP/ipfixTrunk”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/10001-00000169”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Ttr)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/10001-00000169”, “0?Set(DIAL_TRUNK_OPTIONS=TtrM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/10001-00000169”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/10001-00000169”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/10001-00000169”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/10001-00000169”, “1?Set(CONNECTEDLINE(num,i)=0476476513)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/10001-00000169”, “1?Set(CONNECTEDLINE(name,i)=CID:123)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/10001-00000169”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/10001-00000169”, “SIP/ipfixTrunk/0476476513,300,Ttr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/ipfixTrunk/0476476513
– SIP/ipfixTrunk-0000016a is making progress passing it to SIP/10001-00000169
== Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/10001-00000169’ in macro ‘dialout-trunk’
== Spawn extension (ipfixCtx, 0476476513, 7) exited non-zero on ‘SIP/10001-00000169’
– Executing [h@ipfixCtx:1] Macro(“SIP/10001-00000169”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/10001-00000169”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] ExecIf(“SIP/10001-00000169”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [s@macro-hangupcall:4] Hangup(“SIP/10001-00000169”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/10001-00000169’ in macro ‘hangupcall’
== Spawn extension (ipfixCtx, h, 1) exited non-zero on ‘SIP/10001-00000169’

Thanks in advance for your help.

how many trunks do you have? You mention a second asterisk server. how are the two connected?

can you provide some info on how your trunks are set up. what parameters have you got set in the “peer details”?

we have only one trunk.

here are the peer details:
host=sip.sipit.be
username= XXXX
secret= XXXX
dtmfmode=rfc2833
fromuser= XXXX
fromdomain=sip.sipit.be
type=peer
qualify=yes
nat=auto
insecure=port,invite
canreinvite=no
disallow=all
allow=ulaw&alaw&gsm

the trunks is set with an outbound CID (“iPFix” <3228882448>) and “Allow any CID”

They are not really connected, we used the second one for test purposes.
We configured them separately to simulate two totaly independent setups.
But we encountered a problem that we noticed by calling our test FreePBX, the DID that is actually displayed is the first allowed incoming DID specified in the trunk which is used to carry the SIP call.
Then we tried to set an intra-company route and set a CID for each extension, but it didn’t work as expected.

try taking out the fromuser=xxxx from the settings. BUT only remove the part ADTER the “=”

so it will look like this:

host=sip.sipit.be
username= XXXX
secret= XXXX
dtmfmode=rfc2833
fromuser=
fromdomain=sip.sipit.be
type=peer
qualify=yes
nat=auto
insecure=port,invite
canreinvite=no
disallow=all
allow=ulaw&alaw&gsm

sorry, ADTER = AFTER - I mistyped it.

I think the problem is that the trunk setting “fromuser=” will always override any other CID. if you leave the “fromuser=” blank then it will use the CID of the extension, and if no CID is specified on the extension, it will use the Trunk’s Outbound CID.

hope this helps

We tried to leave the “fromuser” field blank.
It did work when we called the test PBX but this parameter is mandatory by our SIP provider so when we call an external number it doesn’t work.
Is there a registration string we could use somehow to pass the “fromuser” information to our SIP provider ?

I’m looking forward to hearing from you.
I would like to thank you by advance for your help in that matter

Your sip provider will be looking for a valid outbound CID that is associated with your SIP trunk account. this is to stop people using any CID they like. To successfully dial out the sip trunk you will need to specify an appropriate CID. This can be set either on the trunk or on individual extensions.

We have specified the CID on the trunk with “allow any CID” and on some of our extensions.

And even like that, when we call without the “fromuser” it doesn’t work, the call is canceled when it tries to authenticate on our sip provider.

Those CIDs are present on our sip account and were used before on xivo.

We will call our provider tomorrow to speak about that problem with him and see if he can do something on his side.

If I not sure if I understand the problem correctly. My understanding is you have to send a valid CID to your sip provider which is pretty normal practice so you won’t be able to send something different as the call will fail.

I also understand that you want to send calls to another PBX which I assume you are doing via your trunk provider as you only have one trunk in which case the distant pbx will always see the valid CID required by your SIP provider.

Why don’t you setup a direct SIP or IAX2 trunk between the two boxes? That way you can bypass the SIP provider and fully control the CID’s.

We want to make a freepbx for our professional use and are using the other one to do tests. They are not connected by any mean beacause it’s to simulate a call to another pbx (may it be freepbx or not) because we may have to call another pbx we don’t own and we want them to see our CID correctly.

Note that in the “fromuser” setting it is not a CID that is specified but a trunk identifier which is used by our sip provider to authenticate us.
I think the solution maybe to find another option to pass this trunk identifier.

If we set our “fromuser”, when we call another pbx, the first CID specified in our sip account is showed BUT it’s not the CID we use for work. And when we call mobile phone or analogic lines we have another CID that is the good one (3228882448) but not for this extension (3228882428). In this setup no CID are set on trunk or the outbound route (here is something fishy, it show our support CID 3228882448 but we didn’t even set it in the trunk or outbound route and we are calling with 3228882428).

Now if we leave blank the “fromuser” setting, the call to the test pbx show the right CID for the extension (even if we set a CID into the trunk with “allow any cid”)but like this all others calls doesn’t work.

Here is the log when we try to call with “fromuser” blank:

– Executing [0498400995@ipfixCtx:1] Macro(“SIP/10003-0000017f”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/10003-0000017f”, “AMPUSER=10003”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/10003-0000017f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/10003-0000017f”, “1?Set(REALCALLERIDNUM=10003)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/10003-0000017f”, “AMPUSER=428”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/10003-0000017f”, “AMPUSERCIDNAME=iPFix Edouard”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/10003-0000017f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/10003-0000017f”, “AMPUSERCID=428”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/10003-0000017f”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/10003-0000017f”, “CALLERID(all)=“iPFix Edouard” <428>”) in new stack
– Executing [s@macro-user-callerid:10] GotoIf(“SIP/10003-0000017f”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:11] ExecIf(“SIP/10003-0000017f”, “1?Set(GROUP(concurrency_limit)=428)”) in new stack
– Executing [s@macro-user-callerid:12] GosubIf(“SIP/10003-0000017f”, “7?sub-ccss,s,1(ipfixCtx,0498400995)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/10003-0000017f”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/10003-0000017f”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/10003-0000017f”, “0?monitor_config,1(ipfixCtx,0498400995):monitor_default,1(ipfixCtx,0498400995)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/10003-0000017f”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/10003-0000017f”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/10003-0000017f”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“SIP/10003-0000017f”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/10003-0000017f”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,27)
– Executing [s@macro-user-callerid:27] Set(“SIP/10003-0000017f”, “CALLERID(number)=428”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/10003-0000017f”, “CALLERID(name)=iPFix Edouard”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/10003-0000017f”, “CDR(cnum)=428”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/10003-0000017f”, “CDR(cnam)=iPFix Edouard”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/10003-0000017f”, “CHANNEL(language)=en”) in new stack
– Executing [0498400995@ipfixCtx:2] Set(“SIP/10003-0000017f”, “MOHCLASS=default”) in new stack
– Executing [0498400995@ipfixCtx:3] Set(“SIP/10003-0000017f”, “_NODEST=”) in new stack
– Executing [0498400995@ipfixCtx:4] Gosub(“SIP/10003-0000017f”, “sub-record-check,s,1(out,0498400995,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/10003-0000017f”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“SIP/10003-0000017f”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“SIP/10003-0000017f”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“SIP/10003-0000017f”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“SIP/10003-0000017f”, “0?out,1”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/10003-0000017f”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/10003-0000017f”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/10003-0000017f”, “NOW=1359450150”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/10003-0000017f”, “__DAY=29”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/10003-0000017f”, “__MONTH=01”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/10003-0000017f”, “__YEAR=2013”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/10003-0000017f”, “__TIMESTR=20130129-100230”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/10003-0000017f”, “__FROMEXTEN=428”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/10003-0000017f”, “__CALLFILENAME=out-0498400995-428-20130129-100230-1359450150.1215”) in new stack
– Executing [s@sub-record-check:21] Goto(“SIP/10003-0000017f”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/10003-0000017f”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/10003-0000017f”, “0?record,1(exten,0498400995,428)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/10003-0000017f”, “”) in new stack
– Executing [0498400995@ipfixCtx:5] Macro(“SIP/10003-0000017f”, “dialout-trunk,2,0498400995,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/10003-0000017f”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/10003-0000017f”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/10003-0000017f”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/10003-0000017f”, “DIAL_NUMBER=0498400995”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/10003-0000017f”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/10003-0000017f”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/10003-0000017f”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/10003-0000017f”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/10003-0000017f”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/10003-0000017f”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/10003-0000017f”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/10003-0000017f”, “0?Set(REALCALLERIDNUM=428)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/10003-0000017f”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/10003-0000017f”, “USEROUTCID=“iPFix Edouard” <3228882428>”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/10003-0000017f”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/10003-0000017f”, “TRUNKOUTCID=“iPFix” <3228882448>”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/10003-0000017f”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/10003-0000017f”, “1?Set(CALLERID(all)=“iPFix” <3228882448>)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/10003-0000017f”, “1?Set(CALLERID(all)=“iPFix Edouard” <3228882428>)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/10003-0000017f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/10003-0000017f”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:18] Set(“SIP/10003-0000017f”, “CDR(outbound_cnum)=3228882428”) in new stack
– Executing [s@macro-outbound-callerid:19] Set(“SIP/10003-0000017f”, “CDR(outbound_cnam)=iPFix Edouard”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/10003-0000017f”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/10003-0000017f”, “OUTNUM=0498400995”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/10003-0000017f”, “custom=SIP/ipfixTrunk”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/10003-0000017f”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/10003-0000017f”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/10003-0000017f”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/10003-0000017f”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/10003-0000017f”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/10003-0000017f”, “1?Set(CONNECTEDLINE(num,i)=0498400995)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/10003-0000017f”, “1?Set(CONNECTEDLINE(name,i)=CID:3228882428)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/10003-0000017f”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/10003-0000017f”, “SIP/ipfixTrunk/0498400995,300,Tt”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/ipfixTrunk/0498400995
[2013-01-29 10:02:30] WARNING[14872][C-00000145]: chan_sip.c:22670 handle_response_invite: Received response: “Forbidden” from ‘“iPFix Edouard” sip:[email protected];tag=as1f921b2f’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/10003-0000017f”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”) in new stack
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/10003-0000017f”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/10003-0000017f”, “RC=21”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/10003-0000017f”, “21,1”) in new stack
– Goto (macro-dialout-trunk,21,1)
– Executing [21@macro-dialout-trunk:1] Goto(“SIP/10003-0000017f”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] NoOp(“SIP/10003-0000017f”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:2] Set(“SIP/10003-0000017f”, “CALLERID(number)=428”) in new stack
– Executing [0498400995@ipfixCtx:6] Goto(“SIP/10003-0000017f”, “app-blackhole,hangup,1”) in new stack
– Goto (app-blackhole,hangup,1)
– Executing [hangup@app-blackhole:1] NoOp(“SIP/10003-0000017f”, “Blackhole Dest: Hangup”) in new stack
– Executing [hangup@app-blackhole:2] Hangup(“SIP/10003-0000017f”, “”) in new stack
== Spawn extension (app-blackhole, hangup, 2) exited non-zero on ‘SIP/10003-0000017f’

Up !

We just had an idea, rewriting CID with a dialplan injection.

Somebody has some experiences with dialplan injection and can guide us with how to do it ?

I’m reading a lot of stuff right now and trying, but nothing worth mentioning at the time …

Hi
any updates? Did you have any luck to find a solution about the problem??
please advise if you have a solution

thanks