Page 1 of 1

DID for inbound not working

PostPosted: Thu Aug 18, 2011 1:46 pm
by rtabigue
Hi,

have created in-group and pointed DID at it. have followed the manager manual at page 22 and everything is done however when i called the did number call will disconnected. Here's the cli output during the test call

-- Executing [18009080377@inbound-context:1] Answer("SIP/cordia2-0000000e", "") in new stack
-- Executing [18009080377@inbound-context:2] Ringing("SIP/cordia2-0000000e", "") in new stack
-- Executing [18009080377@inbound-context:3] Wait("SIP/cordia2-0000000e", "2") in new stack
-- Executing [18009080377@inbound-context:4] Set("SIP/cordia2-0000000e", "DIDNUMBER=18009080377") in new stack
-- Executing [18009080377@inbound-context:5] NoOp("SIP/cordia2-0000000e", "18009080377") in new stack
-- Executing [18009080377@inbound-context:6] NoOp("SIP/cordia2-0000000e", "") in new stack
-- Executing [18009080377@inbound-context:7] Set("SIP/cordia2-0000000e", "ORIG_CALLERID=") in new stack
-- Executing [18009080377@inbound-context:8] Set("SIP/cordia2-0000000e", "DB(callerid/number)=") in new stack
-- Executing [18009080377@inbound-context:9] Goto("SIP/cordia2-0000000e", "trunkinbound|18009080377|1") in new stack
-- Goto (trunkinbound,18009080377,1)
-- Executing [18009080377@trunkinbound:1] AGI("SIP/cordia2-0000000e", "agi-DID_route.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
-- AGI Script agi-DID_route.agi completed, returning 0
== Auto fallthrough, channel 'SIP/cordia2-0000000e' status is 'UNKNOWN'
-- Executing [h@trunkinbound:1] DeadAGI("SIP/cordia2-0000000e", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

Also, have checked using console command and below is the cli output:

console dial 18009080377@trunkinbound
== Console is full duplex
-- Executing [18009080377@trunkinbound:1] AGI("Console/dsp", "agi-DID_route.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
-- AGI Script agi-DID_route.agi completed, returning 0
== Auto fallthrough, channel 'Console/dsp' status is 'UNKNOWN'
-- Executing [h@trunkinbound:1] DeadAGI("Console/dsp", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0---------------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0
<< Hangup on console >>

Here's the registreation string and account entry of the carrier:

register=> 1800XXXXX:XXXXXXX@XXXX.XXXXX.net/1800XXXXX

[cordia]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=1800XXXXX
secret=XXXXX
host=XXXXXX
dtmfmode=rfc2833
canreinvite=no
qualify=yes
nat=yes
ignoresdpversion=yes
fromuser=1800XXXXXXX
context=inbound-context
insecure=very

Please advise what's wrong with my setup. Thanks

PostPosted: Fri Aug 19, 2011 4:27 pm
by rtabigue
Hi,

Still getting this error. Any help would be great appreciated.

PostPosted: Sat Aug 20, 2011 12:47 am
by williamconley
too bad you bumped your own thread. i check unanswered and ran out of time before i got to this one! maybe tomorrow.

PostPosted: Sat Aug 20, 2011 9:43 am
by williamconley
start by changing "context=inbound-context" to "context=trunkinbound"

also: you should leave your DID set to EXTEN and leave the EXTEN as 9998811112 until THAT works. Then you can modify it one step at a time and trace your error easily.

Baby steps.

PostPosted: Sat Aug 20, 2011 10:07 pm
by rtabigue
Hi William,

Thanks for your help. I already figured out the issue and it was fixed..


:D :D :D

PostPosted: Mon Aug 22, 2011 12:14 pm
by rtabigue
Hi William,

Inbound is already working. We tried outbound and we got not invalid extension prompt. Here's the cli output of the outbound call we did. Please help. Thanks

-- Executing [915033601710@default:1] AGI("SIP/1001-00000006", "agi://127.0.0.1:4577/call_log") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing [915033601710@default:2] Dial("SIP/1001-00000006", "SIPcordia2/15033601710||to") in new stack
[Aug 22 13:06:00] WARNING[8233]: channel.c:3443 ast_request: No channel type registered for 'SIPcordia2'
[Aug 22 13:06:00] WARNING[8233]: app_dial.c:1296 dial_exec_full: Unable to create channel of type 'SIPcordia2' (cause 66 - Channel not implemented)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [915033601710@default:3] Hangup("SIP/1001-00000006", "") in new stack
== Spawn extension (default, 915033601710, 3) exited non-zero on 'SIP/1001-00000006'
-- Executing [h@default:1] DeadAGI("SIP/1001-00000006", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----66-----CHANUNAVAIL----------") in new stack
-- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning 0

PostPosted: Mon Aug 22, 2011 7:46 pm
by williamconley
"SIPcordia2/15033601710||to

SIP is the protocol. It requires a "/" after it.

PostPosted: Tue Aug 23, 2011 9:37 am
by rtabigue
Thanks william, its working now

PostPosted: Tue Aug 23, 2011 9:54 pm
by williamconley
Excellent. Glad to help. Now: Make some money with it! Then buy the Vicidial Manager's Manual (and thank Matt for the free software while getting enough information to save you HOURS of hair-pulling in the future). then find a feature you want to add .. and pay to have it installed so everyone can use it. And thumb your nose at Microsoft the whole time.