[Asterisk-Dev] Patch to support an "outgoing proxy" on SIP register

Dietmar Zlabinger dietmar.astlist2 at eggern.at
Tue Aug 24 12:46:03 MST 2004


Hi,

the sip-channel-module of asterisk supports sending register requests
to a host different from the realm used in the SIP-message:

"register => user[:secret[:authuser]]@host[:port][/extension]"

But when I tried this syntax I failed to register at my SIP provider,
so I traced the messages sent out and found that "host" is used
in the SIP-uri (and not "REGISTER sip:authuser SIP/2.0") and that "user at authuser"
is used when authenticating (and not
"Authorization: Digest username="user", realm="authuser""),
therefore I modified the chan_sip.c so that I could register successfully,
I believe that the modifications I did are required to register using an
"outgoing proxy".

Please give me feedback if you believe that my modifications are of
general interest and if they should be included into the asterisk code.

The patch I have attached below is against todays cvs-repository,
you can also find the patch at http://www.zlabinger.at/chan_sip.patch

Best regards,

Dietmar Zlabinger

-------------- next part --------------
A non-text attachment was scrubbed...
Name: chan_sip.patch
Type: application/octet-stream
Size: 4123 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20040824/5d64d89a/chan_sip.obj


More information about the asterisk-dev mailing list