Jump to content

Send call to extension via "To" field


emuessig

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 10 months later...

 

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 :)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...