SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
variab1eOffline



Joined: May 24, 2007
Posts: 5

Status: Offline
Posted: Dec 22, 2009 - 11:45 PM Reply with quote Back to top
I need openser to respond back to my client on a port other than 5060 (5070 for example). How can i do this? Adding :5070 to contact and/or from in the headers does nothing.
View user's profile Send private message
fcois93Offline



Joined: Oct 02, 2007
Posts: 104
Location: france
Status: Offline
Posted: Dec 23, 2009 - 07:39 AM Reply with quote Back to top
change something like $rd=IP:5070;
no?
View user's profile Send private message MSN Messenger
variab1eOffline



Joined: May 24, 2007
Posts: 5

Status: Offline
Posted: Dec 23, 2009 - 06:27 PM Reply with quote Back to top
well I want it to be dynamic, so if the end device says it is on 5070 then I want openser to respond back on the same.
View user's profile Send private message
fcois93Offline



Joined: Oct 02, 2007
Posts: 104
Location: france
Status: Offline
Posted: Dec 24, 2009 - 07:31 AM Reply with quote Back to top
first, if the device call through 5070, openser have to listen in 5070
second, you can read and search in the body, headers... to know which port you have to use
View user's profile Send private message MSN Messenger
micondaOffline



Joined: Feb 02, 2007
Posts: 356
Location: Germany
Status: Offline
Posted: Jan 04, 2010 - 08:46 AM Reply with quote Back to top
using force_rport() in the config file will make kamailio to ignore the ip/port in the Via and reply to source ip and port.

http://www.kamailio.org/dokuwiki/doku.p ... orce_rport
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.