[sr-dev] assigning $rd buggy?

Alex Balashov abalashov at evaristesys.com
Mon Jul 4 13:48:37 CEST 2011


On 07/04/2011 07:43 AM, Klaus Darilion wrote:

> NOTICE:<script>: 1089:failure to PSTN gateway: Call to
> sip:00431505641636 at 1.2.3.4:5060
> ERROR: pv [pv_core.c:186]: failed to parse the R-URI
> NOTICE:<script>: 1097:next gateway. Call to<null>
> ...
> ERROR: uri2dst: bad_uri: sip:00431505641636 at 81.209.128.132:5060:5060
>
> Looks like the assignment to $rd is buggy (double port)

It had always been my understanding--and my experience--that $rd 
governs the domain portion of the Request URI only, _not_ including 
port.  Port is handled by a different PV: $rp.  Thus, the correct 
assignment would be:

   $rd = 81.209.128.132;
   $rp = 5060;

-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-dev mailing list