[Freeswitch-users] change sip_to_user in dialplan

Weigel, Stefan Stefan.Weigel at allianz-warranty.com
Wed Sep 21 22:54:13 MSD 2011

Hi Avi,

our provider doesn't send the whole number in the INVITE, we need to parse the 'sip_to_uri'.

I just found a way to transfer through the dialplan and putting my information together.

Thanks and best regards


Von: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] Im Auftrag von Avi Marcus
Gesendet: Mittwoch, 21. September 2011 15:20
An: FreeSWITCH Users Help
Betreff: Re: [Freeswitch-users] change sip_to_user in dialplan

Why bother? regex match on the destination_number and then bridge/transfer accordingly. What are you trying to gain by messing with the actual sip_to_user?

And perhaps set on the inbound gateway where it gets sent to..


On Wed, Sep 21, 2011 at 4:12 PM, Weigel, Stefan <Stefan.Weigel at allianz-warranty.com<mailto:Stefan.Weigel at allianz-warranty.com>> wrote:

Hello all,

I'm trying to change some incoming calls 'sip_to_uri' (it's a rerouting of our ITSP) so it matches our main number:

0891234567 -> 08998765

I'm checking the sip_to_uri and then trying to export/set/set_profile_var to the new number. But in debug trace it's still comparing against the original sip_to_uri.

Is there a way to change as soon it's hitting the dialplan ?

Thanks and best regards


FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>

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

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