[Freeswitch-users] Different REGISTER and INVITE From:

Steven Ayre steveayre at gmail.com
Wed Jul 20 19:55:24 MSD 2011


Try setting this in the gateway config:

    <!--/// replace the INVITE from user with the channel's caller-id ///-->
    <!--/// this is false by default because outbound calls generally
need username in the INVITE ///-->
    <!--Use the callerid of an inbound call in the from field on
outbound calls via this gateway -->
    <param name="caller-id-in-from" value="true"/>

You'll need to do 'sofia profile NAME killgw NAME', 'sofia profile NAME rescan'.

It'll then use the caller id in the From for the INVITE, so this
should then work:
originate {origination_caller_id_number='+12345'}sofia/gateway/gw.example.com/+10000
5000

-Steve




On 20 July 2011 08:34,  <dave9876 at gmx.com> wrote:
> Hi,
> I'm trying to test a gateway with FS.
>
> The GW requires me to register with "From: 12345_01 at gw.example.com", but when calling I need to have "From: +12345 at gw.example.com" (with "+" and without "_01")
>
> If I try from the console:
> originate {origination_caller_id_number='+12345'}sofia/gateway/gw.example.com/+10000 5000
>ld
> I still get "From: 12345_01 at gw.example.com", since I have to have "param name="from-user" value="12345_01" set in my GW profile.
>
> Any ideas on how to force a different "From" on the INVITE?
>
> I tried calling from a softphone registered with FS, but then I had trouble with the from-domain instead.
>
> Any help is much appreciated.
>
>
> Dave
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> 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
>



More information about the FreeSWITCH-users mailing list