[Freeswitch-users] How to set user in contact header on b-leg for external gateway?
Brian West
brian at freeswitch.org
Thu Sep 19 04:55:48 MSD 2013
Your going via a gateway so the behavior will differ a little
Sent from my iPhone
> On Sep 18, 2013, at 3:23 PM, Seudin Kasumovic <seudin.kasumovic at gmail.com> wrote:
>
> As I can see (in sofia_glue.c) invite_contact is set from channel variable sip_contact_user if empty. I export channel variable sip_contact_user in dial plan, but on b-leg steal see Contact: <sip:auto_to_user at 1.2.3.4:5060;transport=udp;gw=mygw>.
> Seams that sip_contact_user is used for a-leg only.
>
> Gateway has set param
>
> <param name="extension" value="auto_to_user"/>
>
> In sofia.c 'auto_to_user' or 'auto' value in extension affects only destination_number.
>
> So, I can't see any way to set contact header user name for outbound calls for gateway.
>
> Seudin
>
>
>> On Tue, Sep 17, 2013 at 11:42 PM, Brian West <brian at freeswitch.org> wrote:
>> Look in sofia_glue.c in do_invite at all the variables you can set...
>> --
>> Brian West
>> brian at freeswitch.org
>> FreeSWITCH Solutions, LLC
>> PO BOX PO BOX 2531
>> Brookfield, WI 53008-2531
>> Twitter: @FreeSWITCH_Wire , @briankwest
>> http://www.freeswitchbook.com
>> http://www.freeswitchcookbook.com
>>
>> T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST
>> iNUM: +883 5100 1420 9001
>> ISN: 410*543
>> Skype:briankwest
>> PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Sep 17, 2013, at 8:32 AM, Seudin Kasumovic <seudin.kasumovic at gmail.com> wrote:
>>
>> > Hi,
>> >
>> > Call comes over external gateway and pass to another external gateway via outbound proxy (no authentication nor registration), but on b-leg contact header is not as expected username from tag 'From:' of a-leg.
>> >
>> > a-leg works correct for inbound calls via external gateway:
>> >
>> > Contact: <sip:1001 at 1.2.3.4:5060;transport=udp>
>> >
>> > but b-leg (outbound calls) has header set to:
>> >
>> > Contact: <sip:auto_to_user at 1.2.3.4:5060;transport=udp;gw=mygw>
>> >
>> > I tried to set empty value or comment this line of external gateway:
>> >
>> > <param name="extension" value="auto_to_user"/>
>> >
>> > but then call failed.
>> >
>> > How to set user in contact header on b-leg or/and what to export from dial plan to populate user in contact header on external gateway?
>> >
>> > Regards,
>> > Seudin
>> > _________________________________________________________________________
>> > Professional FreeSWITCH Consulting Services:
>> > consulting at freeswitch.org
>> > http://www.freeswitchsolutions.com
>> >
>> >
>> >
>> >
>> > Official FreeSWITCH Sites
>> > http://www.freeswitch.org
>> > http://wiki.freeswitch.org
>> > http://www.cluecon.com
>> >
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at lists.freeswitch.org
>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> > http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
>
> --
> MSC Seudin Kasumovic
> Tuzla, Bosnia
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130918/81f843fb/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list