emuessig Posted September 26, 2012 Report Share Posted September 26, 2012 Hello, I try to setup a trunk to send to extension via the "To" field. The call is coming in via a LAN phone from a Fritzbox. The "Send call.." setting is: "!([0-9]{3}$)!\1!u!77!" I have created an account with the following numbers: "40 385 4385" As you see from below log the "To" line is: To is "4385" <sip:620@192.168.178.20:5110;line=e4da3b7f;user=phone>, I want to use "4385" for sending, but it seems that "\u" selects the "620". I've also tried to use "\t", but that made no difference. How can I access the "4385" via regexp? I don't want to use the "620" as an extension as the "To" can also be "4640". From Call log: Start From To Duration Trunk 2012/09/26 19:04:56 061xxxxxxxxx 4385 (620)(77) FBF LAN1 From Logfile: From: <sip:061xxxxxxxxx4@fritz.fonwlan.box>;tag=7AA51BBF9401BCCE To: "4385" <sip:620@192.168.178.20:5110;line=e4da3b7f>;tag=814ef923fd;+sip.instance="<urn:uuid:fffdbf9f-e34a-4dc2-88be-6ecf4f211589>" Call-ID: 2195D7FE522A4499@192.168.178.1 CSeq: 53 INVITE Content-Length: 0 [8] 2012/09/26 19:04:56: Incoming call: Request URI sip:620@192.168.178.20:5110;line=e4da3b7f, To is "4385" <sip:620@192.168.178.20:5110;line=e4da3b7f> [8] 2012/09/26 19:04:56: To is "4385" <sip:620@192.168.178.20:5110;line=e4da3b7f;user=phone>, user 0, domain 1 [8] 2012/09/26 19:04:56: Trying to match number 620 with ERE ([0-9]{3}$) [8] 2012/09/26 19:04:56: Send call to extension ERE returned 620 [8] 2012/09/26 19:04:56: User not found for account 620 in domain muessig.no-ip.info, trying to send the call to default account 77 [5] 2012/09/26 19:04:56: Domain trunk FBF Privat@muessig.no-ip.info sends call to 77 in domain muessig.no-ip.info [8] 2012/09/26 19:04:56: Set the To domain based on To user 77@muessig.no-ip.info [9] 2012/09/26 19:04:56: Resolve 104020: url sip:77@192.168.178.109:3072;line=oq49t3wn [9] 2012/09/26 19:04:56: Resolve 104020: udp 192.168.178.109 3072 [5] 2012/09/26 19:04:56: SIP Tx udp:192.168.178.109:3072: INVITE sip:77@192.168.178.109:3072;line=oq49t3wn SIP/2.0 Via: SIP/2.0/UDP 192.168.178.20:5110;branch=z9hG4bK-12734dde83a6abdd52d5e4d3cc7944f5;rport thanks! emuessig Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 26, 2012 Report Share Posted September 26, 2012 Interesting point... The text in the quotes is usually not suitable for routing purposes. Usually there are names, thus there is (currently) no way to use that field. However, it is actually not a big deal to add this (lets say with the flag d for display so that "td" would make it happen) and we'll add it to the next build. Quote Link to comment Share on other sites More sharing options...
emuessig Posted September 27, 2012 Author Report Share Posted September 27, 2012 Interesting point... The text in the quotes is usually not suitable for routing purposes. Usually there are names, thus there is (currently) no way to use that field. However, it is actually not a big deal to add this (lets say with the flag d for display so that "td" would make it happen) and we'll add it to the next build. The text in the quotes is how the FritzBox forwards the MSN via a LAN phone. I am looking forward for the next release to access this for routing. Thanks! emuessig Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 27, 2012 Report Share Posted September 27, 2012 It will take probably two weeks, as we are currently in the process of migrating a server and the new server did not show up yet :-( Quote Link to comment Share on other sites More sharing options...
Casellini Posted August 18, 2013 Report Share Posted August 18, 2013 Hi, I guess this did not happen yet? Regards Norbert Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted August 19, 2013 Report Share Posted August 19, 2013 I guess this did not happen yet? The server showed up... I am not sure what the question was, though... Quote Link to comment Share on other sites More sharing options...
Casellini Posted August 19, 2013 Report Share Posted August 19, 2013 The server showed up... I am not sure what the question was, though... I was looking for the ability to "send" the MSN when calling a specific Trunk. Ewald explained in the post, that it did not work and you posted it woudl take two weeks to implement fof the new release to come. ...but then some minor changes in your company structure happenend Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted August 19, 2013 Report Share Posted August 19, 2013 Yes, crazy times. Anyway, I think the answer is to use a hunt group as a workaround, as it has the possibility to send the group name to the phones in the "From" header. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.