[asterisk-bugs] Wrong signaling of Calling-Party ( caller-id(num) ) on SIP-Trunk
Paul Permann
paul.permann at googlemail.com
Tue Dec 16 08:35:49 CST 2014
Hello,
I tried to connect two astrisks ( 13.0.2 ) with sip trunking.
When phone a at asterisk-a called phone b at asterisk-b , phone b showed
the name of "fromuser"
instead of phone number of phone a or the call doesn't go through.
I just thought it mayd be possible to get the correct Calling Party to
the display ( ec. E164 ) of phone b for call back, but it is not easy.
In my simply example it should be the access code of the sip trunk (80)
followed by the phone number of phone a (43) ( = 8043).
The roule to modify the calling party should by something like
caller-id(num)=80${caller-id(num)}. But that ist not the problem.
phone a ( 42 ) --- asterisk-a ( 81 ) --- sip-trunk --- ( 80 ) asterisk-b
--- ( 43 ) phone b
In my example 42 ( registered to asterisk-a ) called 8143.
My configuration when caller-id(num) has wrong content but Digest
Authentication went well, phone b rung.
from sip.conf:
- Asterisk-A:
[Asterisk-b] ; Trunk to Asterisk-B
host=192.0.2.31
.
fromuser=*asterisk-B*
username=Asterisk-a
- Asterisk-B:
[Asterisk-a]
host=192.0.2.30
fromuser=asterisk-A
username=Asterisk-b
- Console Asterisk-B:
"Caller-ID(num) : *asterisk-B*") in new stack
"Caller-ID(name): Tel. 42") in new stack
SIP trace ( tshark on Asterisk-B ):
INVITE sip:43 at 192.0.2.31:5060 SIP/2.0
Via: SIP/2.0/UDP 192.0.2.30:5060;branch=z9hG4bK2f083335
Contact: <sip:asterisk-B at 192.0.2.30:5060>
SIP/2.0 401 Unauthorized
INVITE sip:43 at 192.0.2.31:5060 SIP/2.0
From: "Tel. 42" <sip:asterisk-B at 192.0.2.30>;tag=as79667d97
Authorization: Digest username="Asterisk-a", realm="asterisk-b",
algorithm=MD5, uri="sip:43 at 192.0.2.31:5060", nonce="1f136267",
response="8a263a2c955b3e870e2b9e7e2374b38c"
My configuration when call doesn't go through, Digest Authentication
does not fit:
from sip.conf:
- Asterisk-A:
[Asterisk-b]
host=192.0.2.31
.
; fromuser=asterisk-B
username=*Asterisk-a*
- Asterisk-B:
[Asterisk-a]
host=192.0.2.30
.
fromuser=asterisk-A
username=Asterisk-b
- Console Asterisk-B:
username mismatch, have <*42*>, digest has <*Asterisk-a*>
Failed to authenticate device "Tel. 42" <sip:42 at 192.0.2.30>;
SIP trace ( tshark on Asterisk-B ):
INVITE sip:43 at 192.0.2.31:5060 SIP/2.0
Via: SIP/2.0/UDP 192.0.2.30:5060;branch=z9hG4bK31bb05ad
Contact: <sip:42 at 192.0.2.30:5060>
SIP/2.0 401 Unauthorized
INVITE sip:43 at 192.0.2.31:5060 SIP/2.0
From: "Tel. 42" <sip:42 at 192.0.2.30>;tag=as3a5bded9
Authorization: Digest username="*Asterisk-a*", realm="asterisk-b",
algorithm=MD5, uri="sip:43 at 192.0.2.31:5060", nonce="7e6fd65f",
response="484fc7fde1937a955f65ddce751c374c"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-bugs/attachments/20141216/249ccb58/attachment-0001.html>
More information about the asterisk-bugs
mailing list