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

Brian West brian at freeswitch.org
Wed Jan 7 17:50:02 MSK 2015


https://wiki.freeswitch.org/wiki/Variable_sip_cid_type
https://wiki.freeswitch.org/wiki/Variable_effective_caller_id_name
https://wiki.freeswitch.org/wiki/Variable_effective_caller_id_number

There are usually only three ways to send CID, From, RPID, PID

Those links should give you an idea of what you need to try.




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

> I wish I could, but no.
>
>
>
> I was previously using pbxes.com and overriding the outgoing caller ID
> worked.  I believe pbxes.com is Asterisk based?  Anyway, I don’t have a
> SIP trace from pbxes.com.  Sorry.
>
>
>
> For what it’s worth, my pbxes.com trunk configuration, using their GUI,
> was:
>
>
>
> username=”1404XXXXXXX”
>
> password=”password:username”
>
> SIP-proxy=”66.33.147.150”
>
>
>
> And my outgoing caller ID would be set to ”1404XXXXXXX”…
>
>
>
> Thanks,
>
>
>
> George
>
>
>
> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Brian West
> *Sent:* Tuesday, January 06, 2015 8:43 PM
>
> *To:* FreeSWITCH Users Help
> *Subject:* Re: [Freeswitch-users] Register->From->Caller ID
>
>
>
> Having it on a register won't affect the CID, Can you show me the INVITE
> packet that Asterisk sends that works for you?
>
>
>
> On Tue, Jan 6, 2015 at 7:24 PM, George F. Phelps <
> GeorgePhelps at gfphelps.com> wrote:
>
> Brian West,
>
>
>
> I’m trying different tests to find a way to set the outgoing caller ID
> when using switch2voip.us.  I’m attempting to emulate the results of
> their Asterisk configuration example (with Freeswitch configuration).  They
> told me just to set “fromuser” as shown below, in the SIP REGISTRATION
> message.
>
>
>
> [Switch2Voip]
>
> username={USERNAME}
>
> type=peer
>
> secret={PASSWORD}
>
> progressinband=never
>
> port=5060
>
> nat=auto
>
> insecure=very
>
> ignoresdpversion=yes
>
> host=sip.switch2voip.us
>
> dtmfmode=rfc2833
>
> context=from-trunk
>
> canreinvite=no
>
> allow=g729&g711&g723
>
> fromuser=+{CALLER ID}
>
>
>
> Taken from this URL:
>
>
>
>
> http://switch2voip.us/index.php/customer-support/byod/asterisk-sip-trunk-configuration
>
>
>
> I’m not convinced that they want to exactly see…
>
>
>
>    From: “1404XXXXXXX” <sip:+1404XXXXXXX at 66.33.147.150>;tag=FQag8jSNpac9c
>
>
>
> …but I wanted to try.  I can originate calls, just not override the
> outgoing caller ID.
>
>
>
> RFC 3261 does allow for an optional display-name field, along with the
> required URI field, in the From header.  From RFC 3261:
>
>
>
>       From: "Bob" <sips:bob at biloxi.com>;tag=a48s
>
>       From: sip:+12125551212 at phone2net.com;tag=887s
>
>       From: Anonymous <sip:c8oqz84zk7z at privacy.org>;tag=hyh8
>
>
>
> Thanks,
>
>
>
> George
>
>
>
> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Brian West
> *Sent:* Tuesday, January 06, 2015 7:38 PM
> *To:* FreeSWITCH Users Help
> *Subject:* Re: [Freeswitch-users] Register->From->Caller ID
>
>
>
>
>
> 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
>
>
> _________________________________________________________________________
> 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
>
> _________________________________________________________________________
> 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-docs/attachments/20150107/a723b7c2/attachment-0001.html 


Join us at ClueCon 2014 Aug 4-7, 2014
More information about the Freeswitch-docs mailing list