How to add proxy realm to CLI originate command
I am getting incorrect proxy authorization due to realm error. Trying many things nothing works. So far I have added sip_auth_realm and fs_path but the realm becomes my local IP address instead of the remote URL which is required: originate {sip_auth_username= 1234567890130,sip_auth_password=mypass,sip_auth_realm=callcentric.com}sofia/internal/1234567890130@callcentric.com;fs_path=sip:callcentric.com &echo According to ITSP, I need “callcentric.com <http://callcentric.com/>” instead of 10.12.13.7” in what I see in the INVITE message: Proxy-Authorization: Digest username="1234567890130", realm="10.12.13.7", nonce="1bb85bb0553333e87e0779e40444df4f", opaque="", algorithm=MD5, uri="sip: 1234567890130@callcentric.com", response="a269eaa24433332b49e8e5521002484a" Anyone know if this is even possible? I am using CLI to test then plan to use in bridge command in LUA. Thanks. Mario G
don't set the realm. See if it uses the one from the challenge. I recall quirks with callcentric in the past. /b On Thu, Sep 5, 2019 at 2:27 PM mario_fs <mario_fs@mgtech.com> wrote:
I am getting incorrect proxy authorization due to realm error. Trying many things nothing works. So far I have *added* sip_auth_realm and fs_path but the realm becomes my local IP address instead of the remote URL which is required:
originate {sip_auth_username= 1234567890130,sip_auth_password=mypass, sip_auth_realm=callcentric.com}sofia/internal/1234567890130@callcentric.com ;fs_path=sip:callcentric.com &echo
According to ITSP, I need “callcentric.com” instead of 10.12.13.7” in what I see in the INVITE message:
Proxy-Authorization: Digest username="1234567890130", realm="10.12.13.7", nonce="1bb85bb0553333e87e0779e40444df4f", opaque="", algorithm=MD5, uri="sip: 1234567890130@callcentric.com", response="a269eaa24433332b49e8e5521002484a"
Anyone know if this is even possible? I am using CLI to test then plan to use in bridge command in LUA. Thanks. Mario G _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
You're trying to do authentication without registering? If so, create a gateway anyway, but set the register to false. It should use that gateway's info to authenticate. i.e.: <include> <gateway name="provider"> <param name="proxy" value="sip.domain.com"/> <param name="register" value="false"/> <param name="caller-id-in-from" value="true"/> <param name="register" value="false"/> <param name="username" value="user"/> <param name="password" value="pass"/> </gateway> </include> then use that gateway do originate, i.e.: originate sofia/gateway/provider/18005551212 &echo() Regards, David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337 On Thu, Sep 5, 2019 at 8:52 PM mario_fs <mario_fs@mgtech.com> wrote:
I am getting incorrect proxy authorization due to realm error. Trying many things nothing works. So far I have *added* sip_auth_realm and fs_path but the realm becomes my local IP address instead of the remote URL which is required:
originate {sip_auth_username= 1234567890130,sip_auth_password=mypass, sip_auth_realm=callcentric.com}sofia/internal/1234567890130@callcentric.com ;fs_path=sip:callcentric.com &echo
According to ITSP, I need “callcentric.com” instead of 10.12.13.7” in what I see in the INVITE message:
Proxy-Authorization: Digest username="1234567890130", realm="10.12.13.7", nonce="1bb85bb0553333e87e0779e40444df4f", opaque="", algorithm=MD5, uri="sip: 1234567890130@callcentric.com", response="a269eaa24433332b49e8e5521002484a"
Anyone know if this is even possible? I am using CLI to test then plan to use in bridge command in LUA. Thanks. Mario G _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
Brian, I did not set the realm at first and it never worked, same error. David, I will try your suggestion. But I am thinking of just changing to bridge via URI with extension but can’t find how to do that yet. For the last few years I forward calls from FS using bridge to cell numbers but that has a bunch of limitations. I want to change to: call comes in to FS -> bridge to callcentric which is registered to Bria Push server -> iPhone Bria. This is why I want to avoid full time external registration. Can’t use VPN because it has to be always active for incoming calls to ring. Unfortunately, VPN On Demand does not work with Bria, that would solve everything. I wrote long letters to Apple and Counterpath but it does not sound promising. I going to try to figure out how to make a call using URI with an extension specified if there is such a thing. So far no luck. This is much harder than I thought, been at it a few days. Thanks to both of you! Mario
On Sep 5, 2019, at 1:06 PM, David Villasmil <david.villasmil.work@gmail.com> wrote:
You're trying to do authentication without registering? If so, create a gateway anyway, but set the register to false. It should use that gateway's info to authenticate.
i.e.:
<include> <gateway name="provider"> <param name="proxy" value="sip.domain.com <http://sip.domain.com/>"/> <param name="register" value="false"/> <param name="caller-id-in-from" value="true"/> <param name="register" value="false"/> <param name="username" value="user"/> <param name="password" value="pass"/> </gateway> </include>
then use that gateway do originate, i.e.:
originate sofia/gateway/provider/18005551212 &echo()
Regards,
David Villasmil email: david.villasmil.work@gmail.com <mailto:david.villasmil.work@gmail.com> phone: +34669448337
On Thu, Sep 5, 2019 at 8:52 PM mario_fs <mario_fs@mgtech.com <mailto:mario_fs@mgtech.com>> wrote: I am getting incorrect proxy authorization due to realm error. Trying many things nothing works. So far I have added sip_auth_realm and fs_path but the realm becomes my local IP address instead of the remote URL which is required:
originate {sip_auth_username= 1234567890130,sip_auth_password=mypass,sip_auth_realm=callcentric.com}sofia/internal/1234567890130@callcentric.com <mailto:sip_auth_realm=callcentric.com%7Dsofia/internal/1234567890130@callcentric.com>;fs_path=sip:callcentric.com <> &echo
According to ITSP, I need “callcentric.com <http://callcentric.com/>” instead of 10.12.13.7” in what I see in the INVITE message:
Proxy-Authorization: Digest username="1234567890130", realm="10.12.13.7", nonce="1bb85bb0553333e87e0779e40444df4f", opaque="", algorithm=MD5, uri="sip: 1234567890130@callcentric.com <mailto:1234567890130@callcentric.com>", response="a269eaa24433332b49e8e5521002484a"
Anyone know if this is even possible? I am using CLI to test then plan to use in bridge command in LUA. Thanks. Mario G _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com <https://signalwire.com/> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community <https://signalwire.community/>
Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
participants (3)
-
Brian West
-
David Villasmil
-
mario_fs