[Serusers] initiate a call from Sems ?

Veselin Iordanov sip_user at abv.bg
Fri Sep 3 18:13:18 UTC 2004


oki wont in some way to make a call from sems and make 'connection' between person X(SIP softphone) and IVR script
i found one bash script in SER /examples/ctd.sh i try to conect person 
sip:menta at xxx.xxx.xxx.xxx with sip:ivr at xxx.xxx.xxx.xxx
in first instance of the ser server i have rule that say if user is not online forword this request to second instance of the ser 
in second instance of ser i have the rule that say :
....
                                        else if( uri =~ "ivr" ){
                                            log(1, "Time to process IVR script\n");
                                                if(!vm("/tmp/am_fifo","ivr")){
                                                        log("could not contact IVR engine\n");
                                                        t_reply("500","could not contact IVR Engine");
                                                };
                                        }
...
that must forword to SEMS server..
In this way everything works perfect if some one call ivr at xxx.xxx.xxx.xxx 
but when i try to initiate the call with ctd.sh  i gave got this error:

 2(1798) ERROR: parse_uri: bad uri,  state 0 parsed: <Via:> (4) / <Via: SIP/2.0/UDP 80.72.85.178;branch=z9hG4bKb921.b0ba3c52.0> (59)
 2(1798) ERROR: fifo_uac_error: ruri invalid

 2(1798) ERROR: fifo_server: command must begin with :: To: <sip:menta at 80.72.85.178>;tag=6709f4d5
 2(1798) ERROR: fifo_server: command must begin with :: Call-ID: 10942351191984.fifouacctd
 2(1798) ERROR: fifo_server: command must begin with :: CSeq: 2 REFER
 2(1798) ERROR: fifo_server: command must begin with :: Refer-To: sip:ivr at 80.72.85.178
 2(1798) ERROR: fifo_server: command must have at least 3 chars
 2(1798) ERROR: parse_uri: bad uri,  state 0 parsed: <Via:> (4) / <Via: SIP/2.0/UDP 80.72.85.178;branch=z9hG4bKb921.b0ba3c52.0> (59)
 2(1798) ERROR: fifo_uac_error: ruri invalid

 2(1798) ERROR: fifo_server: command must begin with :: To: <sip:menta at 80.72.85.178>;tag=6709f4d5
 2(1798) ERROR: fifo_server: command must begin with :: Call-ID: 10942351191984.fifouacctd
 2(1798) ERROR: fifo_server: command must begin with :: CSeq: 3 BYE
 2(1798) ERROR: fifo_server: command must have at least 3 chars

Phone at menta at 80.72.85.178 ringing when he answer server throw this error.
and when i use this bash script all the configuration in ser was scipet i mean its dont vorword the call to second instance at all ... 

and to be honost i dont have any fogest idea why that happend 

What can be wrong ?

-----------------------------------------------------------------
http://www.lex.gbg.bg - За да знаете правата си!




More information about the Serusers mailing list