Solved

SIP ACCOUNT CODE not included in CDR when SIP Status is "Unknown"

Posted on 2008-10-29
5
1,063 Views
Last Modified: 2013-11-12
Please help with this strange issue.
When "sip show peers" returns status "Unknown" the CDR does not include the accountcode even though the call is correctly processed.
I'm using A2 Billing and it uses the accountcode to determine the authentication.
Asterisk version 1.4.21.2
I'm calling from a Quintum device.

I'm very puzzeled.


Name/username              Host            Dyn Nat ACL Port     Status
1532497439/1532497439      (Unspecified)    D          0        UNKNOWN


The SIP settings are:

[1532497439]
type=friend
host=dynamic
username=1532497439
secret=wspiov8729
accountcode=1532497439
callerid=90002
regexten=90002
amaflags=billing
context=OutboundWS
disallow=all
allow=g729
trunk=yes
qualify=6000
qualifysmoothing=yes
nat=no
canreinvite=yes
dtmfmode=rfc2833
directrtpsetup=no


Thanks Shaun
0
Comment
Question by:shaunwingin
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:michofreiha
ID: 22831768
Kindly note that "sip show peers" will show only the peers created under sip.conf and have type=peer. Here your are saying that you need to see all SIP friends accounts created under a2billing and this is impossible with this command...

Reading the result of "sip show peer", I'm sure that you don't have any peer created under sip.conf and all calls are coming from the SIP friend users registered on the asterisk server

Regards
0
 

Author Comment

by:shaunwingin
ID: 22834715
Changing "type=peer" has the same result.
If I reboot the Quintum then I get

[Oct 29 21:27:36] NOTICE[4106]: chan_sip.c:12669 handle_response_peerpoke: Peer '1532497439' is now Reachable. (54ms / 6000ms)
[Oct 29 21:30:07] WARNING[4106]: chan_sip.c:12565 handle_response_register: Got 200 OK on REGISTER that isn't a register


So its not a config issue. Its got nothing to do with A2 Billing I agree.
0
 
LVL 9

Expert Comment

by:michofreiha
ID: 22835820
this is normal..."sip show peer" will only show you the peers created under sip.conf...To see the extensions registered on your server please use sip show registry..try  it and let me know
0
 

Author Comment

by:shaunwingin
ID: 22837388
I only use SIP Peers to send my traffic to. so it doesn't show it. The issue I'm having is one of qualify=yes that is so to spek not working even though there is internet connectivity between Quintum and Asterisk.
0
 

Accepted Solution

by:
shaunwingin earned 0 total points
ID: 23113393
I solved the problem by not using the account code but rather the CLI
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In my office we had 10 Cisco 7940G IP phones that were useless as they were showing PROTOCOL APPLICATION INVALID when started. I searched through Google and worked for a week continuously on those phones, and finally got them working. This is a di…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now