Hi,
Thanks! I thought I had tried that, but apparently not properly.

The next problem was that I needed P-Asserted-Identity set to "12345_01". 

I added "{sip_h_P-Asserted-Identity='sip:12345_01@gw.example.com',..." and it works fine.


Thanks a lot!


Dave




 

----- Original Message -----

From: Steven Ayre

Sent: 07/20/11 05:55 PM

To: FreeSWITCH Users Help

Subject: Re: [Freeswitch-users] Different REGISTER and INVITE From:


 
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@gmx.com> wrote: 
> Hi, 
> I'm trying to test a gateway with FS. 
> 
> The GW requires me to register with "From: 12345_01@gw.example.com", but when calling I need to have "From: +12345@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@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@lists.freeswitch.org 
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users 
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users 
http://www.freeswitch.org