[asterisk-users] Insert name in SIP registry

Jian Gao jian.gao at sjgeophysics.com
Thu Jun 9 15:10:00 CDT 2011


Via: SIP/2.0/UDP 10.11.22.161:10000;branch=z9hG4bK-a860600e\x0d\x0a
From: Jian Gao 
<sip:8181234567 at my.provider.com>;tag=7e9c4091bfc704bco0\x0d\x0a
To: Jian Gao <sip:8181234567 at my.provider.com>\x0d\x0a
Call-ID: daf96244-769f952c at 10.11.22.161\x0d\x0a
CSeq: 48998 REGISTER\x0d\x0a
Max-Forwards: 70\x0d\x0a
Contact: Jian Gao <sip:8181234567 at 10.11.22.161:10000>;expires=60\x0d\x0a
User-Agent: Linksys/SPA2102-5.2.10\x0d\x0a
Content-Length: 0\x0d\x0a
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER\x0d\x0a
Supported: x-sipura, replaces\x0d\x0a\x0d\x0a
------------------------------------------------------------------

Via: SIP/2.0/UDP 15.20.37.18:5060;branch=z9hG4bK126918b8;rport\x0d\x0a
Max-Forwards: 70\x0d\x0a
From: <sip:8181234567 at 28.7.2.1>;tag=as79950170\x0d\x0a
To: <sip:8181234567 at 28.7.2.1>\x0d\x0a
Call-ID: 6c1dfa426ee3ae5c2fdb6d3925357138 at 127.0.0.1\x0d\x0a
CSeq: 105 REGISTER\x0d\x0a
User-Agent: Linksys/SPA2102-5.2.10\x0d\x0a
Expires: 1800\x0d\x0a
Contact: <sip:8181234567 at 15.20.37.18:5060>\x0d\x0a
Content-Length: 0\x0d\x0a\x0d\x0a
-----------------------------------------------------------------

Hello,

Above I post two SIP registry packets info. The top one I got from when 
the provider's ATA try to register.
The second one is when Asterisk (v1.8) try to register.

I noticed my Asterisk missed the name part on "From", "To" and 
"Contact". So here my question is how to insert
my name into the SIP header when Asterisk trying to register?

Thanks in advance.

Jian





More information about the asterisk-users mailing list