[Serusers] Re: Re: Using IP address as domain

mukesh mukesh at hungama.com
Fri Sep 22 15:44:04 CEST 2006


Hi andrey,
        I have made follwing changes in ser.cfg
               
                listen="202.87.x.x"
                alias="202.87.x.x"

               
                #export SIP_DOMAIN = 202.87.x.x

        when I run
        # /etc/rc.d/init.d/ser restart
        I get this log

----------------------log starts here -------------------------
        Starting ser:           0(5116) WARNING: fix_socket_list: could not
rev. resolve 202.87.x.x
         0(5116) WARNING: fix_socket_list: could not rev. resolve 202.87.x.x
        WARNING: no fork mode
        stateless - initializing
         0(0) Maxfwd module- initializing
        textops - initializing
         0(0) INFO: udp_init: SO_RCVBUF is initially 110592
        Listening on
               udp: 202.87.x.x [202.87.x.x]:5060
                 tcp: 202.87.x.x [202.87.x.x]:5060
        Aliases:
               *: 202.87.x.x:*

         0(0) INFO: udp_init: SO_RCVBUF is finally 262142
         0(0) ERROR: udp_init: bind(6, 0x810237c, 16) on 202.87.x.x: Cannot
assign requested address
                                                           [FAILED]
        [root at oradb1 /]#
----------------------log ends here -------------------------  
Regards
Mukesh

From: "Andrey Kuprianov" <andrey.kouprianov at gmail.com>
Subject: Re: [Serusers] Using IP address as domain
To: serusers at iptel.org
Message-ID:
        <ab5f5bda0609210935y71edb46ci6ea9966b170e52de at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

AFAIK, SIP_DOMAIN you need to export anyway.. Just put your IP instead
of the name. Then this SIP_DOMAIN will be used to properly add
contacts to your subscriber table. So, if your domain is an IP
address, newly added ppl will have an IP instead of domain for their
host part of URI. Try also to specify alias as you IP address, i.e.

listen="202.x.x.x"
alias="202.x.x.x"

You may also try to add a domain entry to the domain table with serctl
(that is if you use functions in your config such as
"is_uri_host_local()"), i.e.

serctl domain add 202.x.x.x

Hope it will work for you.

  Andrey.


On 9/20/06, mukesh <mukesh at hungama.com> wrote:
> Hi friends,
>        I have SER (with database support) running on my linux box. But I
do
> not have a domain name registered for the IP of this machine but it does
> have a public IP (202.87.xx.xxx) address which allows me access it from
> outside.
>
>        If I try to access (using sipsak client) a uri from local system it
> fails.
>        example URIs  I am trying are ...
>        sip:mukesh@<public ip>
>        sip:mukesh@<public ip>:5060
>
>        ...with no result :(
>
>        I referred http://mit.edu/sip/sip.edu/ser.shtml to configure my
> ser.cfg.
>
>        So the question is How can I connect to SER using IP and do I need
> to use "# export SIP_DOMAIN=<public ip>"?
>
> Regards
> Mukesh 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060922/0ab378b4/attachment.htm>


More information about the sr-users mailing list