[Freeswitch-users] Change uri inside Proxy-Authorization (sip_auth_uri)

Gonzalo Gasca Meza gascagonzalo at gmail.com
Wed Aug 26 06:00:26 MSD 2015


In a SIP TLS call initial SIP INVITE with proxy authentication uri is
populated with transport=tls, which seems to be causing issues with far end.

How can I modify this field? I need to be (uri="
sip:+14089234300 at tls.itsp.com) like this:

Proxy-Authorization: Digest username="gonzalo", realm="sip.itsp.com",
nonce="76202e080586a818939c7b1292e61317", cnonce="CoLCw8Y1EjOpXQqrj4sqmw",
opaque="b4728d445b067bf647afd6d7028881f6", algorithm=MD5, uri="
sip:+14089234300 at tls.itsp.com",
response="d901a524745a6124c50e6dac1c08a502", qop=auth, nc=000000

Instead of sip:+14089234300 at gonzalotls.itsp.com;transport=tls:

Proxy-Authorization: Digest username="gonzalo", realm="sip.itsp.com",
nonce="5c99ec833921f9e31eb50d27c6230b33", cnonce="0sNq8sY2EjOpXQqrj4sqmw",
opaque="c85f5b8d3a7ac674837b72594bf3c7b8", algorithm=MD5, uri="
sip:+14089234300 at tls.itsp.com;transport=tls",
response="d17b81a6cbbb1538d5c9a03e35d6bdde", qop=auth, nc=00000001
This is my configuration:

<include>
<gateway name="itsp-tls">
   <param name="tls-version" value="tlsv1"/>
   <param name="register-transport" value="tls"/>
   <param name="username" value="gonzalo*****"/>
   <param name="password" value="password****"/>
   <param name="realm" value="itsp-tls"/>
   <param name="proxy" value="tls.itsp.com"/> <!-- (your configured Trunk
SIP URI) -->
   <param name="register" value="false"/>
</gateway>
</include>


<extension name="us_itsp_secure">
        <action application="log" data="INFO Processing REGEX"/>
        <condition field="destination_number" expression="^80(\d{11})$">
            <action application="set" data="proxy_media=false"/>
            <action application="set" data="bypass_media=false"/>
            <action application="export" data="zrtp_secure_media=false"/>
            <action application="export"
data="nolocal:rtp_secure_media=mandatory:AES_CM_128_HMAC_SHA1_80"/>
                      <action application="set" data="dialed_number=+$1"/>
            <action application="log" data="INFO Processing US call to ITSP
Secure ${dialed_number}"/>
            <action application="bridge"
data="sofia/gateway/itsp-tls/${dialed_number}"/>
          </condition>
    </extension>

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150825/976c6840/attachment.html 


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