[Freeswitch-users] Register->From->Caller ID

Brian West brian at freeswitch.org
Wed Jan 7 03:38:10 MSK 2015


gateway->register_from = switch_core_sprintf(gateway->pool,
"<sip:%s@%s>", from_user,
!zstr(from_domain) ? from_domain : proxy);

This is how the from is built in the code.  Do you have a use case that
Requires it?  I can't think of a reason it would matter.




On Tue, Jan 6, 2015 at 4:59 PM, George F. Phelps <GeorgePhelps at gfphelps.com>
wrote:

> My current gateway REGISTER packet has a certain FROM header, as shown
> below:
>
>
>
>    REGISTER sip:66.33.147.150;transport=udp SIP/2.0
>
>    Via: SIP/2.0/UDP 54.174.255.168:5080;rport;branch=z9hG4bKKQayX8pZ5yctp
>
>    Max-Forwards: 70
>
>    From: <sip:+1404XXXXXXX at 66.33.147.150>;tag=FQag8jSNpac9c
>
>    To: <sip:+1404XXXXXXX at 66.33.147.150>
>
>    Call-ID: d3cd81b1-c9e2-4401-8126-f4e545e3ebce
>
>    CSeq: 69955649 REGISTER
>
>    Contact: <sip:gw+switch2voip.us at 54.174.255.168:5080;transport=udp;gw=
> switch2voip.us>
>
>    . . .
>
>
>
> What do I set/change in my gateway configuration to add a character string
> “1404XXXXXXX” to the FROM header?  As shown in red below:
>
>
>
>    REGISTER sip:66.33.147.150;transport=udp SIP/2.0
>
>    Via: SIP/2.0/UDP 54.174.255.168:5080;rport;branch=z9hG4bKKQayX8pZ5yctp
>
>    Max-Forwards: 70
>
>    From: “1404XXXXXXX” <sip:+1404XXXXXXX at 66.33.147.150>;tag=FQag8jSNpac9c
>
>    To: <sip:+1404XXXXXXX at 66.33.147.150>
>
>    Call-ID: d3cd81b1-c9e2-4401-8126-f4e545e3ebce
>
>    CSeq: 69955649 REGISTER
>
>    Contact: <sip:gw+switch2voip.us at 54.174.255.168:5080;transport=udp;gw=
> switch2voip.us>
>
>    . . .
>
>
>
> I am already setting the following values (in my gateway definition):
>
>
>
>    <param name="from-user" value="1404XXXXXXX"/>
>
>    <param name="caller-id-in-from" value="true"/>
>
>
>
> Thanks,
>
>
>
> George
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>



-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150106/720561f4/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list