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