I cannot get FS to send the P-Asserted-Identity header instead it always sends the P-Preferred-Identity header. According to http://wiki.freeswitch.org/wiki/Channel_Variables#sip_cid_type I must set the privacy flag in order for P-Asserted-Identity to be used, so here is my dialplan entry and the SIP INVITE that is sent: <extension name="outbound"> <condition field="destination_number" expression="^(\d{10})$"> <action application="lcr" data="$1"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="privacy=yes"/> <action application="privacy" data="yes"/> <action application="set" data="sip_h_Privacy=id"/> <action application="bridge" data="{sip_cid_type=pid,origination_privacy=hide_namehide_number}${lcr_auto_route}"/> </condition> </extension> ------------------------------------------------------------------------ INVITE sip:+17165555555@YYY.YYY.YYY.YYY:5060 SIP/2.0 Via: SIP/2.0/UDP 72.43.207.154;rport;branch=z9hG4bKK0pepF2H0atSp Max-Forwards: 68 From: "1000" <sip:7165551001@XX.XX.XX.XX>;tag=8U2rQ1pmXXaDQ To: <sip:+17165555555@YYY.YYY.YYY.YYY:5060> Call-ID: de66ec94-12f5-1230-cbb1-5e6ae73de10d CSeq: 27864844 INVITE Contact: <sip:mod_sofia@XX.XX.XX.XX:5060> User-Agent: FSwitch Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, precondition, path, replaces Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Privacy: id Content-Type: application/sdp Content-Disposition: session Content-Length: 209 X-FS-Support: update_display,send_info P-Preferred-Identity: "1000" <sip:7165551001@XX.XX.XX.XX> v=0 o=FreeSWITCH 1336383832 1336383833 IN IP4 XX.XX.XX.XX s=FreeSWITCH c=IN IP4 XX.XX.XX.XX t=0 0 m=audio 17984 RTP/AVP 0 9 8 3 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
I've also tried setting <action application="privacy" data="full"/> with same results. On Mon, May 7, 2012 at 10:53 AM, Vik Killa <vipkilla@gmail.com> wrote:
I cannot get FS to send the P-Asserted-Identity header instead it always sends the P-Preferred-Identity header. According to http://wiki.freeswitch.org/wiki/Channel_Variables#sip_cid_type I must set the privacy flag in order for P-Asserted-Identity to be used, so here is my dialplan entry and the SIP INVITE that is sent:
<extension name="outbound"> <condition field="destination_number" expression="^(\d{10})$"> <action application="lcr" data="$1"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="privacy=yes"/> <action application="privacy" data="yes"/> <action application="set" data="sip_h_Privacy=id"/> <action application="bridge" data="{sip_cid_type=pid,origination_privacy=hide_namehide_number}${lcr_auto_route}"/> </condition> </extension>
------------------------------------------------------------------------ INVITE sip:+17165555555@YYY.YYY.YYY.YYY:5060 SIP/2.0 Via: SIP/2.0/UDP 72.43.207.154;rport;branch=z9hG4bKK0pepF2H0atSp Max-Forwards: 68 From: "1000" <sip:7165551001@XX.XX.XX.XX>;tag=8U2rQ1pmXXaDQ To: <sip:+17165555555@YYY.YYY.YYY.YYY:5060> Call-ID: de66ec94-12f5-1230-cbb1-5e6ae73de10d CSeq: 27864844 INVITE Contact: <sip:mod_sofia@XX.XX.XX.XX:5060> User-Agent: FSwitch Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, precondition, path, replaces Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Privacy: id Content-Type: application/sdp Content-Disposition: session Content-Length: 209 X-FS-Support: update_display,send_info P-Preferred-Identity: "1000" <sip:7165551001@XX.XX.XX.XX>
v=0 o=FreeSWITCH 1336383832 1336383833 IN IP4 XX.XX.XX.XX s=FreeSWITCH c=IN IP4 XX.XX.XX.XX t=0 0 m=audio 17984 RTP/AVP 0 9 8 3 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
I think you missed the delimiter (+) on origination_privacy. -djbinter Sent from my iPad On May 7, 2012, at 8:14 AM, Vik Killa <vipkilla@gmail.com> wrote:
I've also tried setting <action application="privacy" data="full"/> with same results.
On Mon, May 7, 2012 at 10:53 AM, Vik Killa <vipkilla@gmail.com> wrote:
I cannot get FS to send the P-Asserted-Identity header instead it always sends the P-Preferred-Identity header. According to http://wiki.freeswitch.org/wiki/Channel_Variables#sip_cid_type I must set the privacy flag in order for P-Asserted-Identity to be used, so here is my dialplan entry and the SIP INVITE that is sent:
<extension name="outbound"> <condition field="destination_number" expression="^(\d{10})$"> <action application="lcr" data="$1"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="privacy=yes"/> <action application="privacy" data="yes"/> <action application="set" data="sip_h_Privacy=id"/> <action application="bridge" data="{sip_cid_type=pid,origination_privacy=hide_namehide_number}${lcr_auto_route}"/> </condition> </extension>
------------------------------------------------------------------------ INVITE sip:+17165555555@YYY.YYY.YYY.YYY:5060 SIP/2.0 Via: SIP/2.0/UDP 72.43.207.154;rport;branch=z9hG4bKK0pepF2H0atSp Max-Forwards: 68 From: "1000" <sip:7165551001@XX.XX.XX.XX>;tag=8U2rQ1pmXXaDQ To: <sip:+17165555555@YYY.YYY.YYY.YYY:5060> Call-ID: de66ec94-12f5-1230-cbb1-5e6ae73de10d CSeq: 27864844 INVITE Contact: <sip:mod_sofia@XX.XX.XX.XX:5060> User-Agent: FSwitch Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, precondition, path, replaces Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Privacy: id Content-Type: application/sdp Content-Disposition: session Content-Length: 209 X-FS-Support: update_display,send_info P-Preferred-Identity: "1000" <sip:7165551001@XX.XX.XX.XX>
v=0 o=FreeSWITCH 1336383832 1336383833 IN IP4 XX.XX.XX.XX s=FreeSWITCH c=IN IP4 XX.XX.XX.XX t=0 0 m=audio 17984 RTP/AVP 0 9 8 3 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
This says nothing about a delimiter: http://wiki.freeswitch.org/wiki/Variable_origination_privacy On Mon, May 7, 2012 at 11:35 AM, Dorn DJBinter <djbinter@gmail.com> wrote:
I think you missed the delimiter (+) on origination_privacy.
-djbinter
Sent from my iPad
On May 7, 2012, at 8:14 AM, Vik Killa <vipkilla@gmail.com> wrote:
I've also tried setting <action application="privacy" data="full"/> with same results.
On Mon, May 7, 2012 at 10:53 AM, Vik Killa <vipkilla@gmail.com> wrote:
I cannot get FS to send the P-Asserted-Identity header instead it always sends the P-Preferred-Identity header. According to http://wiki.freeswitch.org/wiki/Channel_Variables#sip_cid_type I must set the privacy flag in order for P-Asserted-Identity to be used, so here is my dialplan entry and the SIP INVITE that is sent:
<extension name="outbound"> <condition field="destination_number" expression="^(\d{10})$"> <action application="lcr" data="$1"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="privacy=yes"/> <action application="privacy" data="yes"/> <action application="set" data="sip_h_Privacy=id"/> <action application="bridge" data="{sip_cid_type=pid,origination_privacy=hide_namehide_number}${lcr_auto_route}"/> </condition> </extension>
------------------------------------------------------------------------ INVITE sip:+17165555555@YYY.YYY.YYY.YYY:5060 SIP/2.0 Via: SIP/2.0/UDP 72.43.207.154;rport;branch=z9hG4bKK0pepF2H0atSp Max-Forwards: 68 From: "1000" <sip:7165551001@XX.XX.XX.XX>;tag=8U2rQ1pmXXaDQ To: <sip:+17165555555@YYY.YYY.YYY.YYY:5060> Call-ID: de66ec94-12f5-1230-cbb1-5e6ae73de10d CSeq: 27864844 INVITE Contact: <sip:mod_sofia@XX.XX.XX.XX:5060> User-Agent: FSwitch Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, precondition, path, replaces Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Privacy: id Content-Type: application/sdp Content-Disposition: session Content-Length: 209 X-FS-Support: update_display,send_info P-Preferred-Identity: "1000" <sip:7165551001@XX.XX.XX.XX>
v=0 o=FreeSWITCH 1336383832 1336383833 IN IP4 XX.XX.XX.XX s=FreeSWITCH c=IN IP4 XX.XX.XX.XX t=0 0 m=audio 17984 RTP/AVP 0 9 8 3 101 13 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=ptime:20
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Also, I just tried it using the + delimiter, it's still sending P-Preferred-Identity On Mon, May 7, 2012 at 12:16 PM, Vik Killa <vipkilla@gmail.com> wrote:
This says nothing about a delimiter: http://wiki.freeswitch.org/wiki/Variable_origination_privacy
On Mon, May 7, 2012 at 11:35 AM, Dorn DJBinter <djbinter@gmail.com> wrote:
I think you missed the delimiter (+) on origination_privacy.
-djbinter
From what I understand, if you use the privacy dialplan application, and set it to the proper flags, then it should do P-Asserted.
-djbinter On Mon, May 7, 2012 at 9:21 AM, Vik Killa <vipkilla@gmail.com> wrote:
Also, I just tried it using the + delimiter, it's still sending P-Preferred-Identity
On Mon, May 7, 2012 at 12:16 PM, Vik Killa <vipkilla@gmail.com> wrote:
This says nothing about a delimiter: http://wiki.freeswitch.org/wiki/Variable_origination_privacy
On Mon, May 7, 2012 at 11:35 AM, Dorn DJBinter <djbinter@gmail.com> wrote:
I think you missed the delimiter (+) on origination_privacy.
-djbinter
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
you need the screen param to trigger asserted, its on by default but as soon as you specify the privacy from the var it's up to you to put it back. On Tue, May 8, 2012 at 6:56 AM, Vik Killa <vipkilla@gmail.com> wrote:
So what are you thinking at this point? Need to update the wiki or open a Jira?
I could open a ticket with Jira, I just assumed that I was doing something wrong but I guess if nobody can help me on here it could be a bug.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (6)
-
Anthony Minessale
-
DJB International
-
Dorn DJBinter
-
Gabriel Gunderson
-
George A
-
Vik Killa