[Serusers] cpl-c en sample script

Bogdan-Andrei IANCU iancu at fokus.fraunhofer.de
Mon Jul 26 19:21:19 CEST 2004


you get me wrong. The original problem was that you were trying to fwd 
the call using the user at host, call that will hit again your server and 
trigger again cpl execution. The idea is to fwd the call directly to 
user avoiding going through your server again. Solution? in the original 
script, replace location with lookup node
bogdan

Arne Scheffer wrote:

>Bogdan,
>
>ok, I have removed the location line:
>cpl for user 400 at x.x.x.x:
><?xml version="1.0" encoding="UTF-8"?>
>
><!DOCTYPE cpl PUBLIC '-//IETF//DTD RFCxxxx CPL 1.0//EN' 'cpl.dtd'>
>
><cpl>
>  <subaction id="voicemail">
>    <location url="sip:800 at x.x.x.x" clear="yes">
>      <proxy />
>    </location>
>  </subaction>
>  <incoming>
>    <proxy ordering="first-only" timeout="10">
>      <noanswer>
>        <sub ref="voicemail" />
>      </noanswer>
>      <failure>
>        <sub ref="voicemail" />
>      </failure>
>    </proxy>
>  </incoming>
></cpl>
>
>But in this case I get:
>
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:cpl-c:get_dest_user: tring to get user from new_uri
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:cpl-c:get_dest_user: tring to get user from R_uri
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:get_user_script: fetching script for user <400 at x.x.x.x>
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:get_user_script: we got the script len=106
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:cpl_run_script: processing CPL node
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:cpl_run_script: processing proxy node
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:run_proxy: location set found empty -> going on failure/default branch
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:cpl_run_script: processing sub node
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:cpl_run_script: processing location node
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG:cpl_run_script: processing proxy node
>Jul 26 18:56:48 localhost /usr/local/sbin/ser[10938]: DEBUG: add_param: tag=d5410b66a4
>
>How should I set the cpl so the 400 at x.x.x.x will start ringing ?
>
>It seems if I leave the line out the ser does not know where to go and take failure path.
>
>Or do I need to use aliases to get this to work ?
>
>thanks,
>Arne.
>
>-----Original Message-----
>From: Bogdan-Andrei IANCU [mailto:iancu at fokus.fraunhofer.de]
>Sent: maandag 26 juli 2004 18:26
>To: Arne Scheffer
>Subject: Re: [Serusers] cpl-c en sample script
>
>
>Arne Scheffer wrote:
>
>  
>
>>Bogdan,
>>
>>Thanks upload works.
>>
>>However new problem. I am upload the following for account 200 at x.x.x.x:
>>
>><?xml version="1.0" encoding="UTF-8"?>
>><cpl>
>><subaction id="voicemail">
>><location url="sip:800 at x.x.x.x">
>><proxy/>
>></location>
>></subaction>
>><incoming>
>><location url="sip:200 at x.x.x.x">
>><proxy timeout="8">
>><busy>
>><sub ref="voicemail"/>
>></busy>
>><noanswer>
>><sub ref="voicemail"/>
>></noanswer>
>></proxy>
>></location>
>></incoming>
>></cpl>
>>
>>I want it to try 200 and if it is busy or noanswer I want the call to be sent to 800.
>>
>>If I use this script it seems to loop a lot.
>> 
>>
>>    
>>
>the script does (looping) exactly what you told it to do which is 
>different of what you wish to do. the problem is the initial 
>location+proxy : when user x receive an INVITE you told CPL to forward 
>the INVITE to user x and the whole story will start again, and 
>again..... it's just a problem of logic! ;-)
>
>bogdan
>
>  
>




More information about the sr-users mailing list