[Spce-user] Inbound DID in SIP header

Blagoja blagojaanusev at anutel.ca
Fri Mar 1 16:07:07 EST 2013



I think that SCPE is not reading dialed incoming  number
properly. The number from my provider is 5101199 and the rulle I set for
  ^([1-9][0-9]+)$
But as I can see in kamailio-proxy.log spce is not reding DID number so there is nothing to rewrite or route.
This is the part of the log where spce is treating that call and in BOLD where is not finding any number to rewrite

Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: New request - M=INVITE R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' F=sip:025101165 at 217.16.67.5:5060;user=phone;cpc=ordinary T=sip:5101199 at 217.16.67.5:5060;user=phone IP=217.16.67.5:5060 (127.0.0.1:5060) ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Call from PSTN - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Load peer preferences for peer host '1' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Load dialplan IDs for peer host '1' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Fetched dialplan IDs caller_in='1', callee_in='2' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Dialog set mark total - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Dialog set mark peer to '1' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: IP authorization for caller not provisioned, allow call - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: User-Provided CLI '025101165' taken from PAI - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Network-Provided CLI '025101165' taken from PAI - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Applying caller-in peer rewrite rules on user-provided CLI using dpid '1' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Rewriting user-provided CLI '025101165' to '5101165' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Applying caller-in peer rewrite rules on network-provided CLI using dpid '1' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Rewriting network-provided CLI '025101165' to '5101165' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Setting '5101165 at 172.16.17.10' as initiating user-provided CLI - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Setting '5101165 at 172.16.17.10' as initiating network-provided CLI - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
_*Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Searching for callee - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10*__*
*__*Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Applying callee-in peer rewrite rules using dpid '2' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10*__*
*__*Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: No matching rewrite rules for 'ngcp-lb' found - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10*__*
*__*Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Clear callee preferences - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10*__*
*__*Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Callee is not local - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10*__*
*_Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Check Administrative NCOS level - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Check User NCOS level - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Checking URI 'ngcp-lb at 24.150.194.162' and CLI 'ngcp-lb' against block out lists - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Admin caller block mode is 'open' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Caller block mode is 'open' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Call to unknown user - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Accounting failed request for uuid '0' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Setting acc source-leg for uuid '0': '0|025101165|217.16.67.5|5101165|||<null>|||0|call|<null>|1362171203.778528' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11992]: INFO: <script>: Setting acc destination-leg for uuid '0': '0|||<null>|ngcp-lb|0|ngcp-lb|24.150.194.162|ngcp-lb|24.150.194.162' - R=sip:ngcp-lb at 24.150.194.162:5060;ngcpct='sip:127.0.0.1:5080' ID=41a5d5f337v18e8j5 at 172.16.17.10
Mar  1 15:53:23 x1-6-00-1f-c6-69-61-d9 /usr/sbin/kamailio[11991]: INFO: <script>: New request - M=ACK R=sip:127.0.0.1:5080 F=sip:025101165 at 217.16.67.5:5060;user=phone;cpc=ordinary T=sip:5101199 at 217.16.67.5:5060;user=phone IP=217.16.67.5:5060 (127.0.0.1:5060) ID=41a5d5f337v18e8j5 at 172.16.17.10

Can anybody helpme how to pach this

  I had this problem in asterisk when provider is not sending did number
in sip header . I understand that asterisk is diferent from spce but if
I can tell somehow to spce how to get  the DID number when provider is not sending in header.
This is the link for asterisk to help understend what is my problem.
http://www.freepbx.org/support/documentation/howtos/how-to-get-the-did-of-a-sip-trunk-when-the-provider-doesnt-send-it-and-


Blagoja

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20130301/defe63c4/attachment.html>


More information about the Spce-user mailing list