Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


funkypenguin

11 posts

Geek
+1 received by user: 1

Trusted

#28375 27-Nov-2008 15:06
Send private message

Hey WxCers,

We've recently setup a VFX trunk, with an additional 4 DDIs. Outgoing calls are working fine, but I'm having trouble getting Trixbox to recognize the incoming DDIs as being different from the primary DDI. Let's assume that my trunk number is 95550001, and my additional DDIs are 9550002-9550005:

My trixbox setup (obfuscated) looks like this:

type=peer
host=pan.wxnz.net
insecure=invite,port
fromuser=95550001
canreinvite=no
nat=yes
secret=blahblahsecret
username=blahblahuser

I have no settings under "user context"/"user details".

When I dial 95550001 from an outside number, I get this:

[Nov 27 14:45:03]     -- Executing [95550001@from-sip-external:1] NoOp("SIP/blahblahsecret-097ef9b0", "Received incoming SIP connection from unknown peer to 95550001") in new stack
[Nov 27 14:45:03]     -- Executing [95550001@from-sip-external:2] Set("SIP/blahblahsecret-097ef9b0", "DID=95550001") in new stack
[Nov 27 14:45:03]     -- Executing [95550001@from-sip-external:3] Goto("SIP/blahblahsecret-097ef9b0", "s|1") in new stack
[Nov 27 14:45:03]     -- Goto (from-sip-external,s,1)
[Nov 27 14:45:03]     -- Executing [s@from-sip-external:1] GotoIf("SIP/blahblahsecret-097ef9b0", "1?from-trunk|99510264|1") in new stack
[Nov 27 14:45:03]     -- Goto (from-trunk,95550001,1)

But when I dial 95550004 from an outside number, I get this:

[Nov 27 14:50:30]     -- Executing [95550001@from-sip-external:1] NoOp("SIP/blahblahsecret-098cc868", "Received incoming SIP connection from unknown peer to 95550001") in new stack
[Nov 27 14:50:30]     -- Executing [95550001@from-sip-external:2] Set("SIP/blahblahsecret-098cc868", "DID=95550001") in new stack
[Nov 27 14:50:30]     -- Executing [95550001@from-sip-external:3] Goto("SIP/blahblahsecret-098cc868", "s|1") in new stack
[Nov 27 14:50:30]     -- Goto (from-sip-external,s,1)
[Nov 27 14:50:30]     -- Executing [s@from-sip-external:1] GotoIf("SIP/blahblahsecret-098cc868", "1?from-trunk|95550001|1") in new stack
[Nov 27 14:50:30]     -- Goto (from-trunk,95550001,1)
[Nov 27 14:50:30]     -- Executing [95550001@from-trunk:1] Set("SIP/blahblahsecret-098cc868", "__FROM_DID=95550001") in new stack

However, when I do a "debug sip" on trixbox however, I do see some packets which refer to the correct DDI I dialled:

[Nov 27 14:59:18]     -- Executing [s@ivr-3:7] Wait("SIP/blahblahsecret-09753908", "1") in new stack
[Nov 27 14:59:18]
<--- SIP read from 58.28.20.150:5060 --->
ACK sip:95550001@123.123.123.123;transport=UDP SIP/2.0
From: <sip:021555123@as.wxcnz.net>;tag=96141c3ablahblahsecret13c4-492dfef5-b00c97a-26a8003c
To: "Blah Blah Ltd"<sip:95550004@as.wxcnz.net;rinstance=492de46e33a5251f>;tag=as1672fa7b
Call-ID: BW1458545022711081971752367@10.251.1.11
CSeq: 1 ACK
Via: SIP/2.0/UDP 58.28.20.150:5060;branch=z9hG4bK-3f2e7-492dfef5-b00c9a6-58c61ad4
Max-Forwards: 9
Contact: <sip:021555123@as.wxcnz.net:5060;maddr=58.28.20.150;transport=UDP>
Content-Length: 0

Have I missed something?

Cheers :)
- David

Create new topic
sbiddle
30853 posts

Uber Geek
+1 received by user: 9996

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #180702 27-Nov-2008 16:20
Send private message

Are you using VFX or DVX? I wasn't aware that VFX supported addional DDI numbers.

Have you simply signed up to VFX and then purchased 4 additional numbers that are linked back to the main trunk (ie similair to buying multiple numbers in other regions)? If so I believe these will all default to the main VFX trunk. and will not pass through the DDI for these additional numbers.



funkypenguin

11 posts

Geek
+1 received by user: 1

Trusted

  #180705 27-Nov-2008 16:25
Send private message

Sorry, typo above, it is a DVX trunk.




Regards,
David Young

cisconz
cisconz
1348 posts

Uber Geek
+1 received by user: 179

ID Verified
Trusted
Lifetime subscriber

  #180717 27-Nov-2008 17:49
Send private message

funkypenguin:
[Nov 27 14:59:18]     -- Executing [s@ivr-3:7] Wait("SIP/blahblahsecret-09753908", "1") in new stack
[Nov 27 14:59:18]
<--- SIP read from 58.28.20.150:5060 --->
ACK sip:95550001@123.123.123.123;transport=UDP SIP/2.0
From: <sip:021555123@as.wxcnz.net>;tag=96141c3ablahblahsecret13c4-492dfef5-b00c97a-26a8003c
To: "Blah Blah Ltd"<sip:95550004@as.wxcnz.net;rinstance=492de46e33a5251f>;tag=as1672fa7b
Call-ID: BW1458545022711081971752367@10.251.1.11
CSeq: 1 ACK
Via: SIP/2.0/UDP 58.28.20.150:5060;branch=z9hG4bK-3f2e7-492dfef5-b00c9a6-58c61ad4
Max-Forwards: 9
Contact: <sip:021555123@as.wxcnz.net:5060;maddr=58.28.20.150;transport=UDP>
Content-Length: 0

Have I missed something?


Yes you have. See how the sip To: tag says "To: "Blah Blah Ltd"<sip:95550004@as.wxcnz.net".
This means the trixbox is parsing the Ack instead of the To. as to how to fix this I am not sure.
On the system I use I just add the ddi to an extension and it works.





Hmmmm


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.