incoming not working... out of ideas for tshoot

greenlord
Joined: Tue 26 of Jul, 2011

incoming not working... out of ideas for tshoot

Posted:Tue 26 of Jul, 2011 (05:29 UTC)
Hello Everyone !

i would like to say that iam still a n00b with voip. this is my second configuration and it is a little complex. i will go in details through my config and problems.

I am configuring trixbox for a 20 channels DID with voipvoip. Outbound works like a charm, however inbound not working. flowchart goes like that;

caller -> Toll Free
Call Answer -> IVR
IVR -> Ring Group

It qill be a little more complex then this but i figured it would be a good start to get things working. So i configured my Trunk as per instructions on the website that can be found here: http://www.voipvoip.com/trixbox/

Copy Paste of my trunk settings;

PEER Details:
username=555XXXXXXX
type=peer
qualify=yes
secret=mypassword
nat=auto
insecure=very
host=sip3.voipvoip.com
fromuser=555XXXXXXX
fromdomain=sip3.voipvoip.com
dtmfmode=rfc2833
disallow=all
allow=g729&ilbc&ulaw&alaw


INCOMING SETTINGS:

username=555XXXXXXX
type=user
secret=mypassword
nat=auto
insecure=very
qualify=yes
host=sip3.voipvoip.com
dtmfmode=rfc2833
disallow=all
context=from-trunk
allow=g729&ulaw&alaw&ilbc


Through the config file editor i also edited sip_general_custom.conf and added the line srvlookup=no as per their instructions.

After that i went ahead and created my extensions that all work locally as well as for outgoing. After i created my extensions i created my ring group with ring all that is working locally. after that I created my IVR, assigned my system recordings and then assing proper options to proper ring groups which is also working locally. When i dial 7777 i can go through the whole process NO PROBLEMS. So i created an inbound route Any did / Any CID to point destination to my IVR (That is locally working).

After that, i tried to call the toll free number.... Dead Air and call disconnect after 5 seconds or so. To me in theory it reflects settings that SHOULD work. So i logged in the Asterisk CLI tried to call the number to see the output and here is what i got.



Connected to Asterisk 1.6.0.26-FONCORE-r78 currently running on NFPBX01 (pid = 3258)
Verbosity is at least 3
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [555XXXXXXX@from-sip-external:1] NoOp("SIP/voipvoip-00000000", "Received incoming SIP connection from unknown peer to 555XXXXXXX") in new stack
-- Executing [555XXXXXXX@from-sip-external:2] Set("SIP/voipvoip-00000000", "DID=555XXXXXXX") in new stack
-- Executing [555XXXXXXX@from-sip-external:3] Goto("SIP/voipvoip-00000000", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/voipvoip-00000000", "0?from-trunk,555XXXXXXX,1") in new stack
-- Executing [s@from-sip-external:2] Set("SIP/voipvoip-00000000", "TIMEOUT(absolute)=15") in new stack
Channel will hangup at 2011-07-25 17:24:27.000 EDT.
-- Executing [s@from-sip-external:3] Answer("SIP/voipvoip-00000000", "") in new stack
-- Executing [s@from-sip-external:4] Wait("SIP/voipvoip-00000000", "2") in new stack
-- Executing [s@from-sip-external:5] Playback("SIP/voipvoip-00000000", "ss-noservice") in new stack
-- Executing [s@from-sip-external:6] PlayTones("SIP/voipvoip-00000000", "congestion") in new stack
== Spawn extension (from-sip-external, s, 6) exited non-zero on 'SIP/voipvoip-00000000'
-- Executing [h@from-sip-external:1] NoOp("SIP/voipvoip-00000000", "Hangup") in new stack
-- Executing [h@from-sip-external:2] Set("SIP/voipvoip-00000000", "DID=s") in new stack
-- Executing [h@from-sip-external:3] Goto("SIP/voipvoip-00000000", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/voipvoip-00000000", "0?from-trunk,s,1") in new stack
-- Executing [s@from-sip-external:2] Set("SIP/voipvoip-00000000", "TIMEOUT(absolute)=15") in new stack
Channel will hangup at 2011-07-25 17:24:29.000 EDT.
-- Executing [s@from-sip-external:3] Answer("SIP/voipvoip-00000000", "") in new stack
== Spawn extension (from-sip-external, s, 3) exited non-zero on 'SIP/voipvoip-00000000'
-- Registered SIP '3000' at 216.218.29.158 port 38547
-- Registered SIP '3000' at 24.202.210.222 port 14936
-- ast_get_srv: SRV lookup for '_sip._UDP.sip3.voipvoip.com' mapped to host sip3.voipvoip.com, port 5060




i checked and the IP wasnt the same as the one registered and the one displayed when do sip show peer command. So i went ahead and set trixbox to allow incoming anonymous calls. Once activated. I called again but this time got dead air for about 20 seconds and call disconnected. HOWEVER output in Asterisk CLI is very different. Here it goes;



=========================================================================
Connected to Asterisk 1.6.0.26-FONCORE-r78 currently running on NFPBX01 (pid = 3258)
Verbosity is at least 3
-- Registered SIP '3000' at 216.218.29.158 port 38547
-- ast_get_srv: SRV lookup for '_sip._UDP.sip3.voipvoip.com' mapped to host sip3.voipvoip.com, port 5060
-- Registered SIP '3000' at 24.202.210.222 port 14936
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
-- Executing [555XXXXXXX@from-sip-external:1] NoOp("SIP/voipvoip-00000002", "Received incoming SIP connection from unknown peer to 555XXXXXXX") in new stack
-- Executing [555XXXXXXX@from-sip-external:2] Set("SIP/voipvoip-00000002", "DID=555XXXXXXX") in new stack
-- Executing [555XXXXXXX@from-sip-external:3] Goto("SIP/voipvoip-00000002", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/voipvoip-00000002", "1?from-trunk,555XXXXXXX,1") in new stack
-- Goto (from-trunk,555XXXXXXX,1)
-- Executing [555XXXXXXX@from-trunk:1] NoOp("SIP/voipvoip-00000002", "Catch-All DID Match - Found 555XXXXXXX - You probably want a DID for this.") in new stack
-- Executing [555XXXXXXX@from-trunk:2] Goto("SIP/voipvoip-00000002", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("SIP/voipvoip-00000002", "__FROM_DID=s") in new stack
-- Executing [s@ext-did:2] Gosub("SIP/voipvoip-00000002", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/voipvoip-00000002", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Return("SIP/voipvoip-00000002", "") in new stack
-- Executing [s@ext-did:3] ExecIf("SIP/voipvoip-00000002", "1 ?Set(CALLERID(name)=5142814333)") in new stack
-- Executing [s@ext-did:4] Set("SIP/voipvoip-00000002", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:5] Set("SIP/voipvoip-00000002", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@ext-did:6] Goto("SIP/voipvoip-00000002", "ivr-5,s,1") in new stack
-- Goto (ivr-5,s,1)
-- Executing [s@ivr-5:1] Set("SIP/voipvoip-00000002", "MSG=custom/WELC_TMP") in new stack
-- Executing [s@ivr-5:2] Set("SIP/voipvoip-00000002", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-5:3] Set("SIP/voipvoip-00000002", "__DIR-CONTEXT=default") in new stack
-- Executing [s@ivr-5:4] Set("SIP/voipvoip-00000002", "_IVR_CONTEXT_ivr-5=") in new stack
-- Executing [s@ivr-5:5] Set("SIP/voipvoip-00000002", "_IVR_CONTEXT=ivr-5") in new stack
-- Executing [s@ivr-5:6] GotoIf("SIP/voipvoip-00000002", "0?begin") in new stack
-- Executing [s@ivr-5:7] Answer("SIP/voipvoip-00000002", "") in new stack
-- Executing [s@ivr-5:8] Wait("SIP/voipvoip-00000002", "1") in new stack
-- Executing [s@ivr-5:9] Set("SIP/voipvoip-00000002", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3
-- Executing [s@ivr-5:10] Set("SIP/voipvoip-00000002", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing [s@ivr-5:11] Set("SIP/voipvoip-00000002", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-5:12] ExecIf("SIP/voipvoip-00000002", "1?Background(custom/WELC_TMP)") in new stack
-- Executing [s@ivr-5:13] WaitExten("SIP/voipvoip-00000002", ",") in new stack
-- Registered SIP '3000' at 216.218.29.158 port 38547
-- Timeout on SIP/voipvoip-00000002, going to 't'
-- Executing [t@ivr-5:1] Set("SIP/voipvoip-00000002", "MSG=custom/would-you-like-to-connect") in new stack
-- Executing [t@ivr-5:2] Goto("SIP/voipvoip-00000002", "loop,1") in new stack
-- Goto (ivr-5,loop,1)
-- Executing [loop@ivr-5:1] Set("SIP/voipvoip-00000002", "LOOPCOUNT=1") in new stack
-- Executing [loop@ivr-5:2] GotoIf("SIP/voipvoip-00000002", "0?hang,1") in new stack
-- Executing [loop@ivr-5:3] Goto("SIP/voipvoip-00000002", "ivr-5,s,begin") in new stack
-- Goto (ivr-5,s,9)
-- Executing [s@ivr-5:9] Set("SIP/voipvoip-00000002", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3
-- Executing [s@ivr-5:10] Set("SIP/voipvoip-00000002", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing [s@ivr-5:11] Set("SIP/voipvoip-00000002", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-5:12] ExecIf("SIP/voipvoip-00000002", "1?Background(custom/would-you-like-to-connect)") in new stack
-- Executing [s@ivr-5:13] WaitExten("SIP/voipvoip-00000002", ",") in new stack
-- Timeout on SIP/voipvoip-00000002, going to 't'
-- Executing [t@ivr-5:1] Set("SIP/voipvoip-00000002", "MSG=custom/would-you-like-to-connect") in new stack
-- Executing [t@ivr-5:2] Goto("SIP/voipvoip-00000002", "loop,1") in new stack
-- Goto (ivr-5,loop,1)
-- Executing [loop@ivr-5:1] Set("SIP/voipvoip-00000002", "LOOPCOUNT=2") in new stack
-- Executing [loop@ivr-5:2] GotoIf("SIP/voipvoip-00000002", "0?hang,1") in new stack
-- Executing [loop@ivr-5:3] Goto("SIP/voipvoip-00000002", "ivr-5,s,begin") in new stack
-- Goto (ivr-5,s,9)
-- Executing [s@ivr-5:9] Set("SIP/voipvoip-00000002", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3
-- Executing [s@ivr-5:10] Set("SIP/voipvoip-00000002", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10
-- Executing [s@ivr-5:11] Set("SIP/voipvoip-00000002", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-5:12] ExecIf("SIP/voipvoip-00000002", "1?Background(custom/would-you-like-to-connect)") in new stack
-- Executing [s@ivr-5:13] WaitExten("SIP/voipvoip-00000002", ",") in new stack
-- Registered SIP '3000' at 24.202.210.222 port 14936
-- Timeout on SIP/voipvoip-00000002, going to 't'
-- Executing [t@ivr-5:1] Set("SIP/voipvoip-00000002", "MSG=custom/would-you-like-to-connect") in new stack
-- Executing [t@ivr-5:2] Goto("SIP/voipvoip-00000002", "loop,1") in new stack
-- Goto (ivr-5,loop,1)
-- Executing [loop@ivr-5:1] Set("SIP/voipvoip-00000002", "LOOPCOUNT=3") in new stack
-- Executing [loop@ivr-5:2] GotoIf("SIP/voipvoip-00000002", "1?hang,1") in new stack
-- Goto (ivr-5,hang,1)
-- Executing [hang@ivr-5:1] Playback("SIP/voipvoip-00000002", "vm-goodbye") in new stack
-- Executing [hang@ivr-5:2] Hangup("SIP/voipvoip-00000002", "") in new stack
== Spawn extension (ivr-5, hang, 2) exited non-zero on 'SIP/voipvoip-00000002'
-- Executing [h@ivr-5:1] Hangup("SIP/voipvoip-00000002", "") in new stack
== Spawn extension (ivr-5, h, 1) exited non-zero on 'SIP/voipvoip-00000002'




i noticed that the DID was tagged with my account number. I made my research and it seems voipvoip is using the account number as the DID as a Virtual phone number. Does this output speaks to anyone. It seems like the call is going througs and the IVR plays the System recording but all i hear is dead air. Also when i press any key on the phone the call immediately disconnects. Does that point to a DTMF problem ?

Any help would be greatly Appreciated. i am totally blocked and i can't seem to find an endong to this. Sorry if the solution might be basic but don't forget as previously mentionned i am pretty new to all that stuff.

Thank you !!