[OpenSIPS-Users] Question about contact field of B2bUA module

Anca Vamanu anca at opensips.org
Tue May 11 14:17:36 CEST 2010


Hi Lei,

I will try to fix this, to use the socket where the request was received 
as the contact.

Regards,

-- 
Anca Vamanu
www.voice-system.ro



Lei Tang wrote:
> Hi all, I'm trying to migrate my opensips script to  B2BUA module,  
> The question is: my opensips is listening on multi ip address and port 
> like 10.10.10.11:5060 <http://10.10.10.11:5060>, 10.10.10.12:5060 
> <http://10.10.10.12:5060>, 10.10.10.12:5062 <http://10.10.10.12:5062>, 
> each ip:port pair is used to communicate with some out-side sip 
> server,   but the b2b_entities module can set only one contact field, 
> Does some one known how to make b2b_entities send Contact header the 
> same with the ip and port which opensips received the sip request 
> message? 
>
> For examples:
> When A send INVITE to opensips 10.10.10.10:5060 
> <http://10.10.10.10:5060> port, the message should be
> 1.  A --> opensips  INVITE 1000 at 10.10.10.10:5060 
> <http://1000@10.10.10.10:5060>
> 2.  opensips --> B INVITE 1000 at B   Contact:2000 at 10.10.10.10:5060 
> <http://Contact:2000@10.10.10.10:5060> 
>
> When A send INVITE to opensips 10.10.10.10:5080 
> <http://10.10.10.10:5080> port, the message should be
> 1.  A --> opensips  INVITE 1000 at 10.10.10.10:5080 
> <http://1000@10.10.10.10:5080>
> 2.  opensips --> B INVITE 1000 at B   Contact:2000 at 10.10.10.10:5080 
> <http://Contact:2000@10.10.10.10:5080> 
>
>
> -- 
> Lei.Tang
> lei.tlfly at gmail.com <mailto:lei.tlfly at gmail.com>
> ------------------------------------------------------------------------



More information about the Users mailing list