I am new to the Asterisk code, but it looks it the response to OPTIONS is
always sent to the IP address and UDP port that the request was received
from.  Also, it looks like Asterisk doesn't deal well the VIA header anyway.
In chan_sip.c it looks like to gives-up if the VIA contains "SIP/2.0/UDP":

 

                if (strcasecmp(via, "SIP/2.0/UDP")) {

                        ast_log(LOG_WARNING, "Don't know how to respond via
'%s'\n", via);

                        return -1;

                }

 

Check you log and see if the warning message is there.

 

Ron

 

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andre Kirchner
Sent: Wednesday, November 15, 2006 1:16 PM
To: [email protected]
Subject: [asterisk-users] Set port to which Asterisk should send its answer

 

Hi,

I'm sending the following message from port X to port 5060 of another box
running Asterisk, and it is answering back to port X from port 5060.
Shouldn't Asterisk use the Via header to find out where to answer, and in
this case send its answer to port 4000?

OPTIONS sip:192.168.0.103 SIP/2.0\r\n
Via: SIP/2.0/UDP 192.168.1.130:4000;branch=0.0\r\n
CSeq: 4711 OPTIONS\r\n\r\n

Thanks,

Andre

  

  _____  

Everyone is raving about the
<http://us.rd.yahoo.com/evt=42297/*http:/advision.webevents.yahoo.com/mailbe
ta>  all-new Yahoo! Mail beta.

_______________________________________________
--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

Reply via email to