[Users] gateway redirect

Joao Pereira joao.pereira at fccn.pt
Tue Jun 12 13:27:17 CEST 2007


Im not using uac_redirect.
Im just using rewritehost(..) to forward the calls to an Asterisk 
gateway (and then to FWD echotest).
With X-Lite (and Cisco phones and SNOM phones) it works. But it doesnt 
work with the Patton gateway.

Here is some debug in OpenSER:

ppp.ppp.ppp.ppp - Patton gateways IP (public)
xxx.xxx.xxx.xxx - OpenSER IP (public)
test.startel.pt - OpenSER domain
69.90.155.70 - FWD IP

Its a call to 351210329169 that is translated (with ENUM) to 
613 at fwd.pulver.com (echo test)

U 2007/06/12 00:36:25.367038 ppp.ppp.ppp.ppp:5060 -> xxx.xxx.xxx.xxx:5060
  INVITE sip:351210329169 at test.startel.pt SIP/2.0..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..Max-Forwards
  : 70..Content-Length: 222..To: sip:351210329169 at test.startel.pt..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 03
  ac0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 129527866 
INVITE..Route: <sip:test.startel.pt:5060;lr>..Supported: timer.
  .Remote-Party-ID: 
<sip:114 at test.startel.pt>;party=calling;screen=no;privacy=off..Remote-Party-ID: 
<sip:351210329169 at test.startel.pt
  >;party=called..Content-Type: application/sdp..Contact: 
sip:114 at ppp.ppp.ppp.ppp:5060..Supported: replaces..User-Agen
  t: Patton SN4634 3BIS UI MxSF v3.2.8.45 00A0BA02689C....v=0..o=MxSIP 0 
5 IN IP4 ppp.ppp.ppp.ppp..s=SIP Call..c=IN IP4 pp
  p.ppp.ppp.ppp..t=0 0..m=audio 4872 RTP/AVP 0 8 101..a=rtpmap:0 
PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:101 telephone-e
  vent/8000..a=fmtp:101 
0-15..a=sendrecv..                                                                               

#
U 2007/06/12 00:36:25.561665 xxx.xxx.xxx.xxx:5060 -> ppp.ppp.ppp.ppp:5060
  SIP/2.0 100 Giving a try..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..To: 
sip:351210329169 at test.startel.p
  t..From: sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 
03ac0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 12952786
  6 INVITE..Server: OpenSER (1.2.1-tls (i386/linux))..Content-Length: 
0....                                             
#
U 2007/06/12 00:36:26.018415 xxx.xxx.xxx.xxx:5060 -> 69.90.155.70:5060
  INVITE sip:613 at fwd.pulver.com SIP/2.0..Record-Route: 
<sip:xxx.xxx.xxx.xxx;lr=on;ftag=717e535f36541f2>..Via: SIP/2.0/UDP
  xxx.xxx.xxx.xxx;branch=z9hG4bK6ebf.f15d8c06.0..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..Max-Forward
  s: 69..Content-Length: 222..To: 
sip:351210329169 at test.startel.pt..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 0
  3ac0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 129527866 
INVITE..Supported: timer..Remote-Party-ID: <sip:114 at test.st
  artel.pt>;party=calling;screen=no;privacy=off..Remote-Party-ID: 
<sip:351210329169 at test.startel.pt>;party=called..Content-Type:
   application/sdp..Contact: sip:114 at ppp.ppp.ppp.ppp:5060..Supported: 
replaces..User-Agent: Patton SN4634 3BIS UI MxSF v3.
  2.8.45 00A0BA02689C....v=0..o=MxSIP 0 5 IN IP4 ppp.ppp.ppp.ppp..s=SIP 
Call..c=IN IP4 ppp.ppp.ppp.ppp..t=0 0..m=audio 4872
   RTP/AVP 0 8 101..a=rtpmap:0 PCMU/8000..a=rtpmap:8 
PCMA/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..a=sen
  
drecv..                                                                                                                

#
U 2007/06/12 00:36:26.115398 69.90.155.70:5060 -> xxx.xxx.xxx.xxx:5060
  SIP/2.0 100 Trying..Via: SIP/2.0/UDP 
xxx.xxx.xxx.xxx;branch=z9hG4bK6ebf.f15d8c06.0..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060
  ;branch=z9hG4bK962101c13..To: sip:351210329169 at test.startel.pt..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 03a
  c0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 129527866 
INVITE..Content-Length: 0....                              
#
U 2007/06/12 00:36:26.115784 69.90.155.70:5060 -> xxx.xxx.xxx.xxx:5060
  SIP/2.0 100 trying -- your call is important to us..Via: SIP/2.0/UDP 
xxx.xxx.xxx.xxx;branch=z9hG4bK6ebf.f15d8c06.0..Via:
   SIP/2.0/UDP ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..To: 
sip:351210329169 at test.startel.pt..From: sip:114 at test.startel.pt;t
  ag=717e535f36541f2..Call-ID: 
03ac0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 129527866 
INVITE..Content-Length: 0...
  
.                                                                                                                      

#
U 2007/06/12 00:36:26.118035 69.90.155.70:5060 -> xxx.xxx.xxx.xxx:5060
  SIP/2.0 180 Ringing..Via: SIP/2.0/UDP 
xxx.xxx.xxx.xxx;branch=z9hG4bK6ebf.f15d8c06.0..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:506
  0;branch=z9hG4bK962101c13..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..To: 
sip:351210329169 at test.startel.pt;tag=as51ccad
  c7..Call-ID: 03ac0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 
129527866 INVITE..User-Agent: Asterisk PBX..Allow: INV
  ITE, ACK, CANCEL, OPTIONS, BYE, REFER..Contact: 
<sip:613 at 69.90.168.13:5028>..Content-Length: 0....                    
#
U 2007/06/12 00:36:26.118382 xxx.xxx.xxx.xxx:5060 -> ppp.ppp.ppp.ppp:5060
  SIP/2.0 180 Ringing..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..From: 
sip:114 at test.startel.pt;tag=717e53
  5f36541f2..To: 
sip:351210329169 at test.startel.pt;tag=as51ccadc7..Call-ID: 
03ac0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq
  : 129527866 INVITE..User-Agent: Asterisk PBX..Allow: INVITE, ACK, 
CANCEL, OPTIONS, BYE, REFER..Contact: <sip:613 at 69.90.
  168.13:5028>..Content-Length: 
0....                                                                                    

#
U 2007/06/12 00:36:29.367666 ppp.ppp.ppp.ppp:5060 -> xxx.xxx.xxx.xxx:5060
  CANCEL sip:351210329169 at test.startel.pt SIP/2.0..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..Max-Forwards
  : 70..Content-Length: 0..To: sip:351210329169 at test.startel.pt..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 03ac
  0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 129527866 
CANCEL..Route: <sip:test.startel.pt:5060;lr>..Supported: timer..S
  upported: replaces..User-Agent: Patton SN4634 3BIS UI MxSF v3.2.8.45 
00A0BA02689C....                                 
#
U 2007/06/12 00:36:29.368573 xxx.xxx.xxx.xxx:5060 -> 69.90.155.70:5060
  CANCEL sip:613 at fwd.pulver.com SIP/2.0..Record-Route: 
<sip:xxx.xxx.xxx.xxx;lr=on;ftag=717e535f36541f2>..Via: SIP/2.0/UDP
  xxx.xxx.xxx.xxx;branch=z9hG4bK6ebf.f15d8c06.0..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..Max-Forward
  s: 69..Content-Length: 0..To: sip:351210329169 at test.startel.pt..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 03a
  c0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 129527866 
CANCEL..Supported: timer..Supported: replaces..User-Agent: P
  atton SN4634 3BIS UI MxSF v3.2.8.45 
00A0BA02689C....                                                                   

#
U 2007/06/12 00:36:29.369009 xxx.xxx.xxx.xxx:5060 -> ppp.ppp.ppp.ppp:5060
  SIP/2.0 200 canceling..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..To: 
sip:351210329169 at test.startel.pt;t
  ag=eeea4be47e7c0c3a22d00fc0f271945c-878f..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 03ac0b65b0cced8f6d5bf
  fccf1ce5761 at test.startel.pt..CSeq: 129527866 CANCEL..Server: OpenSER 
(1.2.1-tls (i386/linux))..Content-Length: 0....      
#
U 2007/06/12 00:36:29.465000 69.90.155.70:5060 -> xxx.xxx.xxx.xxx:5060
  SIP/2.0 100 Trying..Via: SIP/2.0/UDP 
xxx.xxx.xxx.xxx;branch=z9hG4bK6ebf.f15d8c06.0..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060
  ;branch=z9hG4bK962101c13..To: sip:351210329169 at test.startel.pt..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 03a
  c0b65b0cced8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 129527866 
CANCEL..Content-Length: 0....                              
#
U 2007/06/12 00:36:29.465433 69.90.155.70:5060 -> xxx.xxx.xxx.xxx:5060
  SIP/2.0 200 canceling..Record-Route: 
<sip:xxx.xxx.xxx.xxx;lr=on;ftag=717e535f36541f2>..Via: SIP/2.0/UDP 
xxx.xxx.xxx.xxx;b
  ranch=z9hG4bK6ebf.f15d8c06.0..Via: SIP/2.0/UDP 
ppp.ppp.ppp.ppp:5060;branch=z9hG4bK962101c13..To: sip:351210329169 at startel
  .pt;tag=43d6c08305a5580073ddc395327059a9-73f0..From: 
sip:114 at test.startel.pt;tag=717e535f36541f2..Call-ID: 03ac0b65b0cced
  8f6d5bffccf1ce5761 at test.startel.pt..CSeq: 129527866 
CANCEL..Content-Length: 0....                                         


Sorry for the long post
Thanks a lot for the help
Joao Pereira




tele wrote:
> Hi,
>
> You use rewritehost() for route call to specific IP or host so it's
> correct, the uac_redirect is a module able to handler 3xx Redirect
> messages from other gw, you can also generate 3xx messages from OpenSER.
> depends on your requirements.
>
> What problem happens with the Patton GW ?
>
> :tele
>
>
> On Mon, 2007-06-11 at 14:43 +0100, Joao Pereira wrote:
>   
>> Hello
>> My question is:
>> Does OpenSER needs some special configuration to redirect calls? Im just 
>> using "rewritehost" and it works with X-Lite without problems.
>> The problem just appeared with the Patton Gateway.... I just need to 
>> know in which situations do I need to configure OpenSER with 
>> "uac_redirect" module.
>>
>> Thanks
>> regards
>> Joao Pereira
>>
>>
>> tele wrote:
>>     
>>> Hi Joao,
>>>
>>> It's not clear want you want to do, you need OpenSER handling 3xx
>>> messages coming from asterisk or the patton gw?
>>> If yes look the "uac_redirect" module.
>>>
>>> :tele
>>>
>>>
>>>
>>>
>>> On Fri, 2007-06-08 at 10:46 +0100, Joao Pereira wrote:
>>>   
>>>       
>>>> Hello
>>>> I'm using a Patton gateway with my Openser and everything works fine, 
>>>> except when OpenSER has to redirect a call to Asterisk.
>>>> If I use X-Lite, OpenSER can redirect the call to Asterisk, but with the 
>>>> Patton gateway it doesnt work.
>>>>
>>>> In the moment Im just using
>>>>  rewritehost(".....");
>>>>
>>>> The problem could be in the Patton gateway configuration, but I just 
>>>> want to be sure... does OpenSER needs some special configuration in 
>>>> order to the redirects to work?
>>>>
>>>> Thanks
>>>> Joao Pereira
>>>>
>>>>     
>>>>         
>>> _______________________________________________
>>> Users mailing list
>>> Users at openser.org
>>> http://openser.org/cgi-bin/mailman/listinfo/users
>>>   
>>>       
>
>   




More information about the Users mailing list