Hi Olle,
Nice to know that. In my case I'm simulating a prepaid call
from Asterisk to SER. On the Asterisk side, there are users
registered with of course different extensions. Asterisk uses SER as
the SIP trunk and SER will forward it to the PSTN gateway. Asterisk
registers to SER with single username "asterisk", and assuming that
the asterisk-registered-users placed calls simultateously, on my CDR
database there will be multiple occurence of the asterisk username
because of multiple calls. Now if total duration of all the calls
placed by username " asterisk" greater than his credit, I will send a
BYE to them for them to disconnect. Would it be usefull not setting
up the extension on my register= parameter in sip.conf? If I used the
sip:[EMAIL PROTECTED] will it distuinguish the asterisk registered user to
disconnect? I'm using a perl script for me to monitor the calls on
SER, also sipsak.
Thanks,
Ryan
At 03:28 PM 2/1/06, Olle E Johansson wrote:
Ryan Pagquil wrote:
Hi,
On asterisk console I enabled SIP debugging and I found
out that asterisk is sending this:
Reliably Transmitting:
REGISTER sip:imydomain.com SIP/2.0
Via: SIP/2.0/UDP :x.x.x.x:5060;branch=z9hG4bK69398d1a
From: <sip:[EMAIL PROTECTED]>;tag=as1d1a85bc
To: <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 102 REGISTER
User-Agent: Asterisk PBX
Expires: 120
*Contact: <sip:[EMAIL PROTECTED]> <--registered on SER Contact column on
location table
*Event: registration
Content-Length: 0
so it means that Asterisk is sending that information, how can I
correct this? It should be <sip:[EMAIL PROTECTED]> no <sip:[EMAIL PROTECTED]> .
Ryan,
Check the syntax of your register= statement. The last entry is the
extension. If you are not entering any extension, asterisk will send
"s" as in this case.
You have plenty of examples in sip.conf.sample in the /configs directory
of your source code.
/O
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users