.Tks for your reply
I do it, but i never see called number on sip tarce.
Here the sip that i receive
3 Dev(3):[sip:12345@blue.fr:5060 / 12345]: PBX contact is public IP: <sip:12345@82.x.x.x:5060>
27-mars-2013 19:40:39.105 [CM503012]: Inbound office hours rule (unnamed) for 10000 forwards to DN:999
27-mars-2013 19:40:39.105 [Flow] Looking for inbound target: called=12345; caller="067xxxx" <sip:067xxxxx@:5060>
27-mars-2013 19:40:39.105 CallerNameAddr: "067xxxxx4"sip:067xxxxx;nf=e
I must see called number before freeswitch
Like here 7931 and not 12345
Max-Forwards: 70
Contact: <sip:025xxxxx@192.168.0.243:5060>
To: <sip:7931@192.168.0.242>
From: <sip:0253xxxxx@192.168.0.243:5060>;tag=486d6569e9
Call-ID: c62f94408c1f3c7c
Tks advance for your help
De : freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] De la part de Steven Schoch
Envoyé : mercredi 27 mars 2013 19:30
À : FreeSWITCH Users Help
Objet : Re: [Freeswitch-users] callee id inbound
On Wed, Mar 27, 2013 at 1:31 AM, Erwan Hermouet <ehermouet@bluetel.fr> wrote:
<condition field="destination_number" expression="^(10[01][0-9])$|^(12345)$">
The problem with that condition is you have 2 expressions in parenthesis. Thus, if the destination number is from 1000 to 1019, it will set $1 to the number. However, if the destination number is 12345, then it will set $2 to that number, and leave $1 unset.
You can fix that problem by changing it to this:
<condition field="destination_number" expression="^(10[01][0-9]|12345)$">
--
Steve