[Serusers] COnfiguring a PSTN number with SER

Ashutosh Kumar ashutoshk at chetu.com
Tue Sep 20 19:53:12 CEST 2005


Hi,
	I assigned the DID to the user but serctl add alias, and the entry
got updated in ser.aliases table.
    But when I call the number from pstn, the registered user does not get
the call. The nextone contacts the SER, but SER responsds to it with a "478
unresolvable desintation".
	Following is the ngrep excerpt.

U PSTN_GW_IP:5060 -> SER_IP:5060
INVITE sip:@SER_IP SIP/2.0.
Max-Forwards: 70.
Session-Expires: 3600;Refresher=uac.
Supported: timer.
.
v=0.
o=msw1 1234 1929 IN IP4 x.y.z.101.
s=sip call.
c=IN IP4 x.y.z.101.
t=0 0.
m=audio 27468 RTP/AVP 0 8 3 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:3 GSM/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.

##
U SER_IP:5060 -> PSTN_GW_IP:5060
SIP/2.0 100 trying -- your call is important to us.


#############
U SER_IP:5060 -> PSTN_GW_IP:5060
SIP/2.0 478 Unresolvable destination (478/TM).

Relevant code from  ser.cfg is as follows:

...
...
modparam("usrloc", "db_url",    "mysql://ser:heslo@localhost/ser")
modparam("usrloc", "db_mode",   2)


   if (uri==myself) {

                if (method=="ACK") {
                        route(7);
                        break;
                } else if (method=="CANCEL") {
                        route(3);
                        break;
                } else if (method=="INVITE") {
                        route(3);
                        break;
                } else if (method=="MESSAGE"){
                        route(4);
                        break;
                } else  if (method=="REGISTER") {
                        route(2);
                        break;
                };

                lookup("aliases");
                if (uri!=myself) {
                        route(5);
                        route(1);
                        break;
                };


                if (!lookup("location")) {
                       sl_send_reply("404", "User Not Found");
                        break;
                };


I don't know where I am wrong.

Regards,
Ashutosh 





-----Original Message-----
From: Iqbal [mailto:iqbal at gigo.co.uk] 
Sent: Tuesday, September 20, 2005 10:35 PM
To: Ashutosh Kumar
Cc: 'Andreas Granig'; serusers at lists.iptel.org
Subject: Re: [Serusers] COnfiguring a PSTN number with SER

just alias that number to a voip username which is bound to that user, 
so when 123456789 is dialed nextone sends it to ser, ser looks up in 
aliases, sees the match and sends it to that user

Iqbal

Ashutosh Kumar wrote:

>Hi Andreas,
>	Thanks for the reply, I was thinking of another approach to do this,
>tell me if I am wrong.
>	May I use the 'phone' field in subscriber table to run an external
>sql script to map the DID (phone) with a username, and then rewrite the
uri,
>and then forward the call to that user?
>
>Regards,
>Ashutosh
>
>
>-----Original Message-----
>From: Andreas Granig [mailto:andreas.granig at inode.info] 
>Sent: Tuesday, September 20, 2005 6:22 PM
>To: Ashutosh Kumar
>Cc: serusers at lists.iptel.org
>Subject: Re: [Serusers] COnfiguring a PSTN number with SER
>
>Ashutosh Kumar wrote:
>  
>
>>            I have a DID number to which I want to assign to a user in 
>>SER, the call will come through a NExtone. How / what changes I have to 
>>make in ser.cfg to arrange that whenever a call comes on that number  on 
>>nextone, that call should be forwarded to the sip-user bound to that
>>    
>>
>number.
>  
>
>>How can I use aliases in this scenario.
>>    
>>
>
>Check the PSTN chapter of the Getting Started document at http://onsip.org
>
>Andy
>
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>.
>
>  
>





More information about the sr-users mailing list