Solved

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

Posted on 2008-10-29
5
1,073 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Every year the snow affects people and businesses. According to the Federation of Small Businesses (FSB), in 2009, UK businesses lost an estimated £1.2bn (http://news.bbc.co.uk/1/hi/business/7864804.stm) because of bad weather. This article was c…
I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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