Inbound Not Working

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Inbound Not Working

Postby IanGP » Tue May 19, 2020 8:29 am

Hi There,

VERSION: 2.14-740a
BUILD: 200315-1126
Asterisk 13.29.2-vici

We are struggling a bit with a new voice provider.
Outbound is 100%, but inbound calls are not working.
When calling in, the below is the output of asterisk -vvvvvvr

Code: Select all

[May 19 15:01:06]   == Manager 'sendcron' logged off from 127.0.0.1
[May 19 15:01:48]   == Using SIP RTP CoS mark 5
[May 19 15:01:48]        > 0x7f7588051a00 -- Strict RTP learning after remote address set to: 31.22.33.22:23610
[May 19 15:01:48]     -- Executing [+27108240669@trunkinbound:1] AGI("SIP/27108240669-0000000d", "agi-DID_route.agi") in new stack
[May 19 15:01:48]     -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[May 19 15:01:48]     -- <SIP/27108240669-0000000d>AGI Script agi-DID_route.agi completed, returning 0
[May 19 15:01:48]     -- Executing [+27108240669@trunkinbound:2] Hangup("SIP/27108240669-0000000d", "") in new stack
[May 19 15:01:48]   == Spawn extension (trunkinbound, +27108240669, 2) exited non-zero on 'SIP/27108240669-0000000d'
[May 19 15:01:48] WARNING[9265][C-00000040]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
[May 19 15:01:48]     -- Executing [h@trunkinbound:1] AGI("SIP/27108240669-0000000d", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------)") in new stack
[May 19 15:01:48]     -- <SIP/27108240669-0000000d>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------------) completed, returning 0
[May 19 15:02:01]   == Manager 'sendcron' logged on from 127.0.0.1



To get this far, we has to add exten => s,1,NoOp() to trunkinbound context in extensions.conf.

I have seen reference to Unable to find information for channel but it seems that's just information, and also appears on a working inbound config (on the same server).

While I carry on troubleshooting, does anyone have any ideas as to where else I can look?

Thanks
IanGP
IanGP
 
Posts: 59
Joined: Thu Jul 28, 2016 1:27 am

Re: Inbound Not Working

Postby williamconley » Tue May 19, 2020 9:54 am

ian: Please include your installation method (full version of the .iso installer and a link to the instructions used if not Vicibox).

Your problem is the "+" in front of the DID being dialed. We generally write a modifier into all our servers to strip the + from all inbound calls in trunkinbound. But without altering a conf file (which is forbidden for new users, BTW, lol) ... the best method is in Modify DID:

Clean CID Number -This field allows you to specify a number of digits to restrict the incoming caller ID number to by putting an R in front of the number of digits, for example to restrict to the right 10 digits you would enter in R10. You can also use this feature to remove only a leading digit or digits by putting an L in front of the specific digits that you want to remove, for example to remove a 1 as the first digit you would enter in L1. Default is empty. If more than one rule is specified make sure you separate them with a space and the R will run before the L.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Inbound Not Working

Postby ambiorixg12 » Wed May 20, 2020 11:08 am

Until here all looks perfect

[May 19 15:01:48] -- Executing [+27108240669@trunkinbound:1] AGI("SIP/27108240669-0000000d", "agi-DID_route.agi") in new stack
[May 19 15:01:48] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi

but agi-DID_route.agi is failling to route the calls, verify you have the correct DID inbound settings for this number +27108240669, I guess you will need to uncoment a line on your extensions.conf file to allow +x nuumbers
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: Inbound Not Working

Postby IanGP » Thu May 21, 2020 7:16 am

@William,
I used Vicibox 9.0.1 for the install.

Thanks for the tip.
I really don't want to be editing the files directly.... So I was keen to use the Clean CID Number
Unfortunately, this setting doesn't seem to be making any changes.
Setting to R11 gives me the same result.

@ambiorixg12

My extensions.conf trunkinbound context, with uncommented lines for the +

Code: Select all
[trunkinbound]
; DID call routing process
; exten => _XXXXXXXXXX,1,AGI(agi-DID_route.agi)  ; use this one instead of the one below if you are having delay issues, and match to number of received digits
exten => _X.,1,AGI(agi-DID_route.agi)
exten => _X.,n,Hangup()
; If you have DIDs that arrive with a plus sign at the beginning then uncomment
exten => _+X.,1,AGI(agi-DID_route.agi)
exten => _+X.,n,Hangup()
; If you have DIDs that arrive with a plus and 1 at the beginning that you want to filter out, then uncomment
;exten => _+1X.,1,Goto(trunkinbound,${EXTEN:2},1)

; FastAGI for VICIDIAL/astGUIclient call logging
exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}-----${HANGUPCAUSE($

; Required for CM Inbound
exten => s,1,NoOp()


Thanks All!
IanGP
 
Posts: 59
Joined: Thu Jul 28, 2016 1:27 am

Re: Inbound Not Working

Postby IanGP » Thu May 21, 2020 7:33 am

Workaround: enabling default DID, and routing that to my in-group is a good, short term workaround.

Still looking for the right answer though.
IanGP
 
Posts: 59
Joined: Thu Jul 28, 2016 1:27 am

Re: Inbound Not Working

Postby williamconley » Thu May 21, 2020 10:09 am

Code: Select all
[trunkinbound]
; DID call routing process
; use this one instead of the one below if you are having delay issues,
; and match to number of received digits
; exten => _XXXXXXXXXX,n,AGI(agi-DID_route.agi)
; For even more speed, you can put in the real DIDs instead of XXXXXXXXXX
; (remove the _ in that case)
exten => _X.,1,NoOp(X,${EXTEN},${CALLERID(NUM)})
exten => _X.,n,AGI(agi-DID_route.agi)
; Catch all even with unexpected first digits (will show in CLI for troubleshooting)
exten => _!,1,Noop(!,${EXTEN},${CALLERID(NUM)})
exten => _!,n,AGI(agi-DID_route.agi)
exten => s,1,NoOp(${EXTEN},${CALLERID(NUM)})
exten => s,n,AGI(agi-DID_route.agi)
; removal of Leading Plus Sign from the the phone
exten => _+X!,1,Noop(Stripping + from start of number, for annoying carriers who insist)
exten => _+X!,n,Goto(trunkinbound,${EXTEN:1},1)
; removal of Leading 1 from the the phone (US numbers only, for annoying carriers who insist)
exten => _1!,1,Noop(Stripping 1 from start of number)
exten => _1!,n,Goto(trunkinbound,${EXTEN:1},1)

; FastAGI for VICIDIAL/astGUIclient call logging
exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}-----${HANGUPCAUSE(${HANGUPCAUSE_KEYS()},tech)}))
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Inbound Not Working

Postby IanGP » Mon May 25, 2020 3:18 am

Thanks William.
Will test tonight and confirm success.
IanGP
 
Posts: 59
Joined: Thu Jul 28, 2016 1:27 am

Re: Inbound Not Working

Postby IanGP » Wed Jul 22, 2020 5:02 am

Finally got this sorted:
Set the DID Extension field to include the +
E.G. +27123456789
IanGP
 
Posts: 59
Joined: Thu Jul 28, 2016 1:27 am

Re: Inbound Not Working

Postby carpenox » Wed Jul 22, 2020 11:13 am

Good shit, nice post back
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Inbound Not Working

Postby ambiorixg12 » Wed Aug 05, 2020 6:23 pm

ambiorixg12 wrote: I guess you will need to uncoment a line on your extensions.conf file to allow +x nuumbers
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 125 guests