[Freeswitch-users] callee id inbound

Erwan Hermouet ehermouet at bluetel.fr
Wed Mar 27 21:44:58 MSK 2013


.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 at blue.fr:5060 / 12345]: PBX contact is public
IP: <sip:12345 at 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 at 192.168.0.243:5060>

  To: <sip:7931 at 192.168.0.242>

  From: <sip:0253xxxxx at 192.168.0.243:5060>;tag=486d6569e9

  Call-ID: c62f94408c1f3c7c

 

Tks advance for your help

 

De : freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130327/d2405e62/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list