Outbound Problems

Hello,

A few days ago I had a problem with outbound calls, I couldn’t make 2 different calls at the same time because the 2nd one interrupted after 10 seconds. Trying to fix that issue, I deleted the Trunk Outbound configuration and tried to config it again from the beginning, I am using exactly the same configurations but now I can’t even make a call, it stops right after trying to call. This is what happens when I try to call a number in United States, same happen with other numbers for example Germany etc :

Connected to Asterisk certified/11.6-cert15 currently running on VipTV (pid = 3006)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [013129625248@mdc_location-31:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,Bujar Dragusha”) in new stack
Bujar Dragusha
– Executing [013129625248@mdc_location-31:2] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_CALLER_LOCATION_ID=31”) in new stack
– Executing [013129625248@mdc_location-31:3] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_CALLER_LOCATION_NAME=Bujar Dragusha”) in new stack
– Executing [013129625248@mdc_location-31:4] Gosub(“SIP/qdgolgn5MRBai1U-00062bc2”, “sub_location,s,1(31,013129625248)”) in new stack
– Executing [s@sub_location:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,used location id: 31 - dialed extension: 013129625248”) in new stack
used location id: 31 - dialed extension: 013129625248
– Executing [s@sub_location:2] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “MDC_CALLEE_NUM=013129625248”) in new stack
– Executing [s@sub_location:3] Return(“SIP/qdgolgn5MRBai1U-00062bc2”, “”) in new stack
– Executing [013129625248@mdc_location-31:5] Gosub(“SIP/qdgolgn5MRBai1U-00062bc2”, “sub_split-location,s,1(31)”) in new stack
– Executing [s@sub_split-location:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,get user for location: 31”) in new stack
get user for location: 31
– Executing [s@sub_split-location:2] GotoIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “0?s-zero,1”) in new stack
– Executing [s@sub_split-location:3] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “TMP_USER_ID=34”) in new stack
– Executing [s@sub_split-location:4] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,user id: 34”) in new stack
user id: 34
– Executing [s@sub_split-location:5] Return(“SIP/qdgolgn5MRBai1U-00062bc2”, “”) in new stack
– Executing [013129625248@mdc_location-31:6] GotoIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “0?mdc_user-34,1312962524,1”) in new stack
– Executing [013129625248@mdc_location-31:7] Goto(“SIP/qdgolgn5MRBai1U-00062bc2”, “mdc_user-34,013129625248,1”) in new stack
– Goto (mdc_user-34,013129625248,1)
– Executing [013129625248@mdc_user-34:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,bd”) in new stack
bd
– Executing [013129625248@mdc_user-34:2] Gosub(“SIP/qdgolgn5MRBai1U-00062bc2”, “sub_user,s,1(caller,34,1050,bd,Bujar Dragusha,1050,1050,1050,en)”) in new stack
– Executing [s@sub_user:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,sub_user mode caller”) in new stack
sub_user mode caller
– Executing [s@sub_user:2] Goto(“SIP/qdgolgn5MRBai1U-00062bc2”, “s-caller,1”) in new stack
– Goto (sub_user,s-caller,1)
– Executing [s-caller@sub_user:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,sub_user user id: 34 - user exten: 1050 - user: bd - realname: Bujar Dragusha - own mailbox: 1050 - watched mailbox: 1050 - callerid(num): 1050 - language: en”) in new stack
sub_user user id: 34 - user exten: 1050 - user: bd - realname: Bujar Dragusha - own mailbox: 1050 - watched mailbox: 1050 - callerid(num): 1050 - language: en
– Executing [s-caller@sub_user:2] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_CALLER_USER_ID=34”) in new stack
– Executing [s-caller@sub_user:3] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_CALLER_NUM=1050”) in new stack
– Executing [s-caller@sub_user:4] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_CALLER_ACC_NAME=bd”) in new stack
– Executing [s-caller@sub_user:5] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_CALLER_ACC_REALNAME=Bujar Dragusha”) in new stack
– Executing [s-caller@sub_user:6] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_CALLER_VM_OWN=1050”) in new stack
– Executing [s-caller@sub_user:7] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_CALLER_VM_WATCHED=1050”) in new stack
– Executing [s-caller@sub_user:8] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “CALLERID(name)=Bujar Dragusha”) in new stack
– Executing [s-caller@sub_user:9] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “CALLERID(num)=1050”) in new stack
– Executing [s-caller@sub_user:10] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “CHANNEL(language)=en”) in new stack
– Executing [s-caller@sub_user:11] Return(“SIP/qdgolgn5MRBai1U-00062bc2”, “”) in new stack
– Executing [013129625248@mdc_user-34:3] Gosub(“SIP/qdgolgn5MRBai1U-00062bc2”, “sub_emergency-check,s,1(013129625248)”) in new stack
– Executing [s@sub_emergency-check:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, "1,sub_emergency-check:: exten: 013129625248 - descent: ") in new stack
sub_emergency-check:: exten: 013129625248 - descent:
– Executing [s@sub_emergency-check:2] GotoIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “1?013129625248,1”) in new stack
– Goto (sub_emergency-check,013129625248,1)
– Channel ‘SIP/qdgolgn5MRBai1U-00062bc2’ sent to invalid extension: context,exten,priority=sub_emergency-check,013129625248,1
– Executing [i@sub_emergency-check:1] Return(“SIP/qdgolgn5MRBai1U-00062bc2”, “”) in new stack
– Executing [013129625248@mdc_user-34:4] GotoIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “0?mdc_emergency,dial,1”) in new stack
– Executing [013129625248@mdc_user-34:5] GotoIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “0?mdc_extphonecall-,013129625248,dial”) in new stack
– Executing [013129625248@mdc_user-34:6] Goto(“SIP/qdgolgn5MRBai1U-00062bc2”, “internal,013129625248,1”) in new stack
– Goto (internal,013129625248,1)
– Executing [013129625248@internal:1] SIPAddHeader(“SIP/qdgolgn5MRBai1U-00062bc2”, "“Alert-Info:http://www.notused.de;info=alert-internal;x-line-id=0"”) in new stack
– Executing [013129625248@internal:2] GosubIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “1?sub_initcall,s,1(int,013129625248)”) in new stack
– Executing [s@sub_initcall:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,sub_initcall descent: int exten: 013129625248”) in new stack
sub_initcall descent: int exten: 013129625248
– Executing [s@sub_initcall:2] GosubIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “1?sub_initloop,s,1”) in new stack
– Executing [s@sub_initloop:1] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,initial loop”) in new stack
initial loop
– Executing [s@sub_initloop:2] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “MDC_ALIAS_HOP=0”) in new stack
– Executing [s@sub_initloop:3] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “MDC_MAIN_HOP=0”) in new stack
– Executing [s@sub_initloop:4] Return(“SIP/qdgolgn5MRBai1U-00062bc2”, “”) in new stack
– Executing [s@sub_initcall:3] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_TRANSFERBACK_HOP=0”) in new stack
– Executing [s@sub_initcall:4] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALDESCENT=int”) in new stack
– Executing [s@sub_initcall:5] Goto(“SIP/qdgolgn5MRBai1U-00062bc2”, “int,1”) in new stack
– Goto (sub_initcall,int,1)
– Executing [int@sub_initcall:1] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALCALLERNUMINIT=1050”) in new stack
– Executing [int@sub_initcall:2] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALCALLEENUMINIT=013129625248”) in new stack
– Executing [int@sub_initcall:3] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALCALLEENUMMAP=013129625248”) in new stack
– Executing [int@sub_initcall:4] Return(“SIP/qdgolgn5MRBai1U-00062bc2”, “”) in new stack
– Executing [013129625248@internal:3] Goto(“SIP/qdgolgn5MRBai1U-00062bc2”, “main,013129625248,1”) in new stack
– Goto (main,013129625248,1)
– Executing [013129625248@main:1] ExecIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “0?Set(MDC_MAIN_HOP=0)”) in new stack
– Executing [013129625248@main:2] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “MDC_MAIN_HOP=1”) in new stack
– Executing [013129625248@main:3] GotoIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “0?mdc_loop,s,1”) in new stack
– Executing [013129625248@main:4] Gosub(“SIP/qdgolgn5MRBai1U-00062bc2”, “sub_defcall,s,1(013129625248)”) in new stack
– Executing [s@sub_defcall:1] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_ALIAS_HOP=1”) in new stack
– Executing [s@sub_defcall:2] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALCALLEENUM=013129625248”) in new stack
– Executing [s@sub_defcall:3] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALCALLERNUM=1050”) in new stack
– Executing [s@sub_defcall:4] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALCALLERLANGUAGE=en”) in new stack
– Executing [s@sub_defcall:5] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALCALLERNAME=Bujar Dragusha”) in new stack
– Executing [s@sub_defcall:6] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__MDC_DIALCHANNELNAME=qdgolgn5MRBai1U”) in new stack
– Executing [s@sub_defcall:7] Return(“SIP/qdgolgn5MRBai1U-00062bc2”, “”) in new stack
– Executing [013129625248@main:5] Goto(“SIP/qdgolgn5MRBai1U-00062bc2”, “mdc_distribute,013129625248,1”) in new stack
– Goto (mdc_distribute,013129625248,1)
– Executing [013129625248@mdc_distribute:1] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “MDC_INPREFIX_TRUNK=0”) in new stack
– Executing [013129625248@mdc_distribute:2] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,remove inprefix: 0”) in new stack
remove inprefix: 0
– Executing [013129625248@mdc_distribute:3] Goto(“SIP/qdgolgn5MRBai1U-00062bc2”, “mdc_outgoing-33,13129625248,1”) in new stack
– Goto (mdc_outgoing-33,13129625248,1)
– Executing [13129625248@mdc_outgoing-33:1] Gosub(“SIP/qdgolgn5MRBai1U-00062bc2”, “sub_trunk-outgoing-33,13129625248,1”) in new stack
– Executing [13129625248@sub_trunk-outgoing-33:1] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “MDC_CALLEE_NUM_INTERNAT=13129625248”) in new stack
– Executing [13129625248@sub_trunk-outgoing-33:2] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “MDC_CALLEE_NUM_NAT=13129625248”) in new stack
– Executing [13129625248@sub_trunk-outgoing-33:3] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “CALLERID(num)=41435083409”) in new stack
– Executing [13129625248@sub_trunk-outgoing-33:4] GotoIf(“SIP/qdgolgn5MRBai1U-00062bc2”, “0?searchdone”) in new stack
– Executing [13129625248@sub_trunk-outgoing-33:5] UserEvent(“SIP/qdgolgn5MRBai1U-00062bc2”, “ResolveCallerName,Strategy: system,Outbound: 1,Channel: SIP/qdgolgn5MRBai1U-00062bc2”) in new stack
– Executing [13129625248@sub_trunk-outgoing-33:6] Wait(“SIP/qdgolgn5MRBai1U-00062bc2”, “0.25”) in new stack
– Executing [13129625248@sub_trunk-outgoing-33:7] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,MDC_RESOLVENAME_HITS = 0”) in new stack
MDC_RESOLVENAME_HITS = 0
– Executing [13129625248@sub_trunk-outgoing-33:8] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, "1,MDC_DIALCALLEENAME = ") in new stack
MDC_DIALCALLEENAME =
– Executing [13129625248@sub_trunk-outgoing-33:9] Verbose(“SIP/qdgolgn5MRBai1U-00062bc2”, “1,IPCOMS Out - out2”) in new stack
IPCOMS Out - out2
– Executing [13129625248@sub_trunk-outgoing-33:10] Set(“SIP/qdgolgn5MRBai1U-00062bc2”, “__SPYGROUP=13129625248:1050”) in new stack
– Executing [13129625248@sub_trunk-outgoing-33:11] Dial(“SIP/qdgolgn5MRBai1U-00062bc2”, “SIP/41435083409/13129625248,t”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/41435083409/13129625248
[Oct 15 03:55:21] WARNING[3302][C-00062a39]: chan_sip.c:22916 handle_response_invite: Received response: “Forbidden” from ‘“Bujar Dragusha” sip:41435083409@64.154.41.158;tag=as5ef66868’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [13129625248@sub_trunk-outgoing-33:12] Return(“SIP/qdgolgn5MRBai1U-00062bc2”, “”) in new stack
– Executing [13129625248@mdc_outgoing-33:2] Hangup(“SIP/qdgolgn5MRBai1U-00062bc2”, “21”) in new stack
== Spawn extension (mdc_outgoing-33, 13129625248, 2) exited non-zero on ‘SIP/qdgolgn5MRBai1U-00062bc2’
– Executing [h@mdc_outgoing-33:1] Gosub(“SIP/qdgolgn5MRBai1U-00062bc2”, “def_hangup,s,1(,CHANUNAVAIL,CALL)”) in new stack
– Executing [s@def_hangup:1] NoOp(“SIP/qdgolgn5MRBai1U-00062bc2”, “>>>def_hangup:: EXTEN: DIALSTATUS: CHANUNAVAIL QUEUESTATUS: REASON: CALL”) in new stack
[Oct 15 03:55:24] WARNING[3302]: chan_sip.c:4050 retrans_pkt: Retransmission timeout reached on transmission 101a287fcab809ccee6520c768cd68d0 for seqno 1 (Critical Response) – See Home - Asterisk Documentation
Packet timed out after 32000ms with no response
VipTV*CLI>

This is the configs:
Trunk ACCOUNT:


Trunk Outbound Calls :

We have 2 different Trunks, we use the first one only for Inbound Calls , it’s from same SIP and it works fine. And we have the other Trunk for Outbound only, it doesn’t work. It worked a few days ago but it had another issue which I mentioned at the beginning of this post.

Hello,

it seems that you are missing to dial the outgoing prefix 0, you dial 01… and 0 is cut off because of prefix. Destination 1… is not reachable.

Best regards,
Steve

Hey Steve,

I use this SIP to call numbers from different Countries, what should I use In-Prefix section of Outbound Calls ?

Hi,

0 is ok, but you have to dial it, for example for a call to germany you should dial 00049…, first 0 will be cut off because of trunk outgoing prefix and the dial to your sip provider should look like Dial(SIP/…/…,0049…). national calls with only 0 leading zero would be dialed 00ZXXX, first 0 will be cut off again, so dial will be 0ZXX… .

If you use our client, der is a default trunk prefix configured at appliance->services-telefony that will be applied in case no other matching prefix is used.

Best regards,
Steve