Problem with incoming calls...

medium_grade

Joined
Apr 3, 2009
Messages
9
Likes
0
Points
0
#1
I am trying to setup Elastix with my SIP trunk provider, but I am having trouble receiving inbound calls. While outbound calls are no problem, users here "the number you have dialed is not in service" when the try to call inbound.

My PEER details:
canreinvite=yes
dtmfmode=rfc2833
host=PROVIDER_IP
outboundproxy=PROVIDER_IP
progressinbound=yes
qualify=300
type=peer
disallow=all
allow=ulaw
context=from-trunk
My USER details
type=peer
reinvite=yes
port=5060
insecure=invite,port
host=PROVIDER_IP
fromdomain=PROVIDER_IP
dtmfmode=rfc2833
disallow=all
context=from-sip-external
canreinvite=no
allow=ulaw
qualify=300
Where "PROVIDER_IP" is the actual IP address from my SIP trunk provider and my USER context is "from-sip-external." I have inbound routes one of which is supposed to go to extension 250. This is what the logs show:
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Executing [+13232710918@from-sip-external:1] NoOp("SIP/4.68.250.148-09bb1068", "Received incoming SIP connection from unknown peer to +13232710918") in new stack
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Executing [+13232710918@from-sip-external:2] Set("SIP/4.68.250.148-09bb1068", "DID=+13232710918") in new stack
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Executing [+13232710918@from-sip-external:3] Goto("SIP/4.68.250.148-09bb1068", "s|1") in new stack
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Goto (from-sip-external,s,1)
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Executing [s@from-sip-external:1] GotoIf("SIP/4.68.250.148-09bb1068", "0?from-trunk|+13232710918|1") in new stack
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Executing [s@from-sip-external:2] Set("SIP/4.68.250.148-09bb1068", "TIMEOUT(absolute)=15") in new stack
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Channel will hangup at 2009-04-04 00:04:47 UTC.
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Executing [s@from-sip-external:3] Answer("SIP/4.68.250.148-09bb1068", "") in new stack
Apr 3 17:04:32 VERBOSE [7944] logger.c: -- Executing [s@from-sip-external:4] Wait("SIP/4.68.250.148-09bb1068", "2") in new stack
Apr 3 17:04:34 VERBOSE [7944] logger.c: -- Executing [s@from-sip-external:5] Playback("SIP/4.68.250.148-09bb1068", "ss-noservice") in new stack
Apr 3 17:04:34 VERBOSE [7944] logger.c: -- Playing 'ss-noservice' (language 'en')
Can anyone help shed some light on this?
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#2
Two tests:
- allow anonymous sip in the general setting (for the duration of the test, as I'm not sure that your trunk is registered)
- check that on your inbound route you have one with DID: +13232710918 that link to your extension 250


When that works, we can go to the next steps to clear the "SIP connection from unknown peer".
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#3
Your VSP is sending you "+" prepended to the inbound number , make sure that your inbound routes reflect that. also setup an incoming "catchall" route while you debug. (interesting, while technically correct I have never seen or tried to route such a call, especially as I am myself in the 323 areacode (Los Angeles), who is your VSP may I ask?), I wonder if FreePBX can transform/strip that "+" as it would be interpreted differently in every different country, at least for outbound calls)
 

medium_grade

Joined
Apr 3, 2009
Messages
9
Likes
0
Points
0
#4
Patrick_elx,

Worked like a charm. Even without the "allow anonymous sip." Thanks.

Dicko,

I am using Bandwidth.com
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#5
great. Enjoy

As Dicko said, it would be a good idea to add a route for any DID, any CID as a catch all to the operator extension.
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#6
dicko said:
I wonder if FreePBX can transform/strip that "+" as it would be interpreted differently in every different country, at least for outbound calls)
I have my Nokia sip wifi as an extension on my pabx, and all my phonebook in the nokia is with +.
I couldn't do anything with freepbx. I had to create a specific context for my Nokia to remove the +

http://www.elastix.org/index.php?option ... 5280#15283
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#7
Exactly, "+" I is surely "metadata" used to "translate" localized locale specific international dial codes to e164 normalized digit strings, if in fact the string is e164 compliant (1NXXNXXXXXX for example) then the + is extraneous and inappropriate for an inbound call (I will check with bandwidth.com as to their interpretation of e164 and why they don't bother to do that conversion themselves, no matter how long I press the # button on my dtmf phone it never changes it to 011, (does work on my blackberry though).)
Oh well standards will always be broken until people RTFM.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top