Ryan Pagquil
2006-Jan-31 20:07 UTC
[Asterisk-Users] Asterisk Registering with SER question
Hi, I've been registering asterisk to ser. I'm using SER as the outbound SIP trunk for Asterisk. Users registered with Asterisk will use the SIP trunk to reach SER registered users and PSTN's. Now when I register Asterisk with SER, on my SER's location table I see these record: Username Column = asterisk Contact Column = sip:s@202.84.24.47 I have a script running that checks the accounting records and sends BYE for the username that has no credit left. I found it hard doing this because of the record on the Contact column on location table of SER, everytime asterisk registers with SER. I could not send BYE to asterisk because of the broken contact information on Contact column of SER's location table. How can I correct this? Here is my sip.conf configuration: [general] port = 5060 bindaddr = x.x.x.x context = sip disallow=all allow=ulaw allow=alow fromuser=asterisk secret=test123 realm=mydomain.com register=>asterisk:test123@mydomain.com Thanks in advance, Ryan
Ryan Pagquil
2006-Jan-31 20:31 UTC
[Asterisk-Users] Asterisk Registering with SER question
<html> <body> Hi,<br> <x-tab> </x-tab>On asterisk console I enabled SIP debugging and I found out that asterisk is sending this:<br><br> Reliably Transmitting:<br> REGISTER sip:imydomain.com SIP/2.0<br> Via: SIP/2.0/UDP :x.x.x.x:5060;branch=z9hG4bK69398d1a<br> From: <sip:asterisk@mydomain.com>;tag=as1d1a85bc<br> To: <sip:asterisk@mydomain.com><br> Call-ID: 640c73336ff4ebf74020e4c42256bdea@202.84.24.47<br> CSeq: 102 REGISTER<br> User-Agent: Asterisk PBX<br> Expires: 120<br> <b>Contact: <sip:s@X.X.X.X> <--registered on SER Contact column on location table<br> </b>Event: registration<br> Content-Length: 0<br><br> so it means that Asterisk is sending that information, how can I correct this? It should be <sip:asterisk@x.x.x.x> no <sip:s@x.x.x.x> .<br><br> Thanks in advance,<br> Ryan </body> </html>
Ryan Pagquil
2006-Jan-31 22:57 UTC
[Asterisk-Users] Asterisk Registering with SER question
Hi, What does it means? Thanks, Ryan At 01:40 PM 2/2/06, Abhishek wrote:>Hi ryan , > > The header you are suspecting does not contains the registration > info. , it is actually the return path for the ACK which will get > generated in response to this packet. >-----Original Message----- >From: asterisk-users-bounces@lists.digium.com >[mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Ryan Pagquil >Sent: Tuesday, January 31, 2006 7:31 PM >To: asterisk-users@lists.digium.com >Subject: [Asterisk-Users] Asterisk Registering with SER question > >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:asterisk@mydomain.com>;tag=as1d1a85bc >To: <sip:asterisk@mydomain.com> >Call-ID: 640c73336ff4ebf74020e4c42256bdea@202.84.24.47 >CSeq: 102 REGISTER >User-Agent: Asterisk PBX >Expires: 120 >Contact: <sip:s@X.X.X.X> <--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:asterisk@x.x.x.x> no <sip:s@x.x.x.x> . > >Thanks in advance, >Ryan > >_______________________________________________ >--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
Olle E Johansson
2006-Feb-01 00:28 UTC
[Asterisk-Users] Asterisk Registering with SER question
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:asterisk@mydomain.com>;tag=as1d1a85bc > To: <sip:asterisk@mydomain.com> > Call-ID: 640c73336ff4ebf74020e4c42256bdea@202.84.24.47 > CSeq: 102 REGISTER > User-Agent: Asterisk PBX > Expires: 120 > *Contact: <sip:s@X.X.X.X> <--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:asterisk@x.x.x.x> no <sip:s@x.x.x.x> . >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
Hi ryan , The header you are suspecting does not contains the registration info. , it is actually the return path for the ACK which will get generated in response to this packet. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Ryan Pagquil Sent: Tuesday, January 31, 2006 7:31 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Asterisk Registering with SER question 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:asterisk@mydomain.com>;tag=as1d1a85bc To: <sip:asterisk@mydomain.com> Call-ID: 640c73336ff4ebf74020e4c42256bdea@202.84.24.47 CSeq: 102 REGISTER User-Agent: Asterisk PBX Expires: 120 Contact: <sip:s@X.X.X.X> <--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:asterisk@x.x.x.x> no <sip:s@x.x.x.x> . Thanks in advance, Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060131/801d7fb5/attachment.htm