VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ohjelmistoarkkitehti a... Guest
|
Posted: Sat Jan 03, 2015 3:04 am Post subject: [asterisk-users] Asterisk removes a charachter from sip peer |
|
|
Hello all,
Just wondering on a behavior I noticed while testing with realtime sip peers with names like 111.222@mydomain.com (111.222@mydomain.com). Using Kamailio as outbound proxy, it sends Asterisk a sip message where To header value is <sip:111.222@mydomain.com ([email]sip%3A111.222@mydomain.com[/email])> and From header has value "username" <sip:111.333@mydomain.com ([email]sip%3A111.333@mydomain.com[/email]);transport=UDP>;tag=fc609171. When Asterisk sends out the sip message, the To header is as it was but as for From header, Asterisk removes the "." charachter from the user part of the sip uri, thus resulting in 111333. Also the Contact header is affected the same way.
I was wondering what might be causing this? Does Asterisk not allow dots in the peer names? The call itself connects so it's not much of an issue but it would be good to know about this, as of course there's a chance I've just missed something relevant.
cheers,
Olli |
|
Back to top |
|
|
paddy at wizaner.com Guest
|
Posted: Mon Jan 05, 2015 8:15 am Post subject: [asterisk-users] Asterisk removes a charachter from sip peer |
|
|
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Olli HeiskanenSent: 03 January 2015 08:04To: Asterisk Users Mailing List - Non-Commercial DiscussionSubject: [asterisk-users] Asterisk removes a charachter from sip peer name Hello all, Just wondering on a behavior I noticed while testing with realtime sip peers with names like 111.222@mydomain.com (111.222@mydomain.com). Using Kamailio as outbound proxy, it sends Asterisk a sip message where To header value is <sip:111.222@mydomain.com ([email]sip%3A111.222@mydomain.com[/email])> and From header has value "username" <sip:111.333@mydomain.com ([email]sip%3A111.333@mydomain.com[/email]);transport=UDP>;tag=fc609171. When Asterisk sends out the sip message, the To header is as it was but as for From header, Asterisk removes the "." charachter from the user part of the sip uri, thus resulting in 111333. Also the Contact header is affected the same way. I was wondering what might be causing this? Does Asterisk not allow dots in the peer names? The call itself connects so it's not much of an issue but it would be good to know about this, as of course there's a chance I've just missed something relevant. cheers, Olli Sounds a bit like From sip.conf ; The shrinkcallerid function removes '(', ' ', ')', non-trailing '.', and '-' not; in square brackets. For example, the caller id value 555.5555 becomes 5555555; when this option is enabled. Disabling this option results in no modification; of the caller id value, which is necessary when the caller id represents something; that must be preserved. This option can only be used in the [general] section.; By default this option is on.;;shrinkcallerid=yes ; on by default Paddy |
|
Back to top |
|
|
ohjelmistoarkkitehti a... Guest
|
Posted: Tue Jan 06, 2015 2:55 am Post subject: [asterisk-users] Asterisk removes a charachter from sip peer |
|
|
Perfect, that's it! Thank you Paddy for pointing that out to me, I had totally missed it!
Thanks,
Olli
2015-01-05 15:15 GMT+02:00 Paddy Grice <paddy@wizaner.com (paddy@wizaner.com)>:
Quote: | From: asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com) [mailto:asterisk-users-bounces@lists.digium.com (asterisk-users-bounces@lists.digium.com)] On Behalf Of Olli Heiskanen
Sent: 03 January 2015 08:04
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Asterisk removes a charachter from sip peer name
Hello all,
Just wondering on a behavior I noticed while testing with realtime sip peers with names like 111.222@mydomain.com (111.222@mydomain.com). Using Kamailio as outbound proxy, it sends Asterisk a sip message where To header value is <sip:111.222@mydomain.com ([email]sip%3A111.222@mydomain.com[/email])> and From header has value "username" <sip:111.333@mydomain.com ([email]sip%3A111.333@mydomain.com[/email]);transport=UDP>;tag=fc609171. When Asterisk sends out the sip message, the To header is as it was but as for From header, Asterisk removes the "." charachter from the user part of the sip uri, thus resulting in 111333. Also the Contact header is affected the same way.
I was wondering what might be causing this? Does Asterisk not allow dots in the peer names? The call itself connects so it's not much of an issue but it would be good to know about this, as of course there's a chance I've just missed something relevant.
cheers,
Olli
Sounds a bit like
From sip.conf
; The shrinkcallerid function removes '(', ' ', ')', non-trailing '.', and '-' not
; in square brackets. For example, the caller id value 555.5555 becomes 5555555
; when this option is enabled. Disabling this option results in no modification
; of the caller id value, which is necessary when the caller id represents something
; that must be preserved. This option can only be used in the [general] section.
; By default this option is on.
;
;shrinkcallerid=yes ; on by default
Paddy
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|