<span style='font-family:Verdana'><span style='font-size:12px'><br />
<span style="font-family:verdana;">Hi,<br />
Thanks! I thought I had tried that, but apparently not properly.<br />
<br />
The next problem was that I needed P-Asserted-Identity set to "12345_01". <br />
<br />
I added "{sip_h_P-Asserted-Identity='sip:12345_01@gw.example.com',..." and it works fine.</span><br />
<br />
<span style="font-family:verdana;">Thanks a lot!<br />
<br />
<br />
Dave</span><br />
<br />
<br />
<br />
<p style="margin:0px; padding:0px;" >
         </p>
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite">
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span></p>
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">From: Steven Ayre</span></span></p>
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">Sent: 07/20/11 05:55 PM</span></span></p>
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">To: FreeSWITCH Users Help</span></span></p>
        <p style="margin:0px; padding:0px;" >
                <span style="font-family:Verdana"><span style="font-size:12px">Subject: Re: [Freeswitch-users] Different REGISTER and INVITE From:</span></span></p>
        <br />
        <div>
                <div>
                        <pre style="white-space: pre-wrap; word-wrap: break-word; font-size:11;pre">
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</pre>
                </div>
        </div>
</blockquote>
<p style="margin:0px; padding:0px;" >
         </p>
<p style="margin:0px; padding:0px;" >
         </p>
<br />
<span id="editor_signature"><span style="font-family:Verdana; font-size:12px"> </span></span></span></span>