[Serusers] multiple call cpl script
Bogdan-Andrei IANCU
iancu at fokus.fraunhofer.de
Wed May 26 14:45:41 CEST 2004
Hi Richard,
from REAME file :
" Normally this function will end script execution. There is no guaranty
that the CPL script interpretation ended when ser script ended
also (for the same INVITE ;-)) - this can happen when the CPL
script does a PROXY and the script interpretation pause after
proxying and it will be resume when some reply is received
(this can happen in a different process of SER). "
if the cpl script ends or a proxy is executed, cpl_run_script() will not
return to ser script.
Bogdan
Richard wrote:
>Hi Bogdan,
>
>It works now.
>
>One question... In my normal script, if the call is
>not answered, it is forwarded to voicemail. However it
>seems cpl_run_script never goes back the ser script
>anymore. In order to forward to voicemail, do I have
>to use 'if no answer', then 'redirect' to voicemail?
>
>Thanks,
>Richard
>
>
>--- Bogdan-Andrei IANCU <iancu at fokus.fraunhofer.de>
>wrote:
>
>
>>Richard,
>>
>>your script idea is good. in lookup node, try to add
>>success (if i'm not
>>wrong) node and inside a proxy node.
>>
>>Bogdan
>>
>>
>>
>>Richard wrote:
>>
>>
>>>Thanks Bodgan,
>>>
>>>There is no place to add location set. It doesn't
>>>
>>>
>>seem
>>
>>
>>>to allow adding locations in the same level, only
>>>
>>>
>>in
>>
>>
>>>the next level. Once I add "lookup registration".
>>>There is no place to add proxy.
>>>
>>>What do I miss?
>>>
>>>This is what I get,
>>><?xml version="1.0" encoding="UTF-8"?>
>>>
>>><!DOCTYPE cpl PUBLIC '-//IETF//DTD RFCxxxx CPL
>>>1.0//EN' 'cpl.dtd'>
>>>
>>><cpl>
>>> <incoming>
>>> <location url="sip:223 at example.org">
>>> <location url="sip:224 at example.org">
>>> <lookup source="registration" />
>>> </location>
>>> </location>
>>> </incoming>
>>></cpl>
>>>
>>>
>>>--- Bogdan-Andrei IANCU
>>>
>>>
>><iancu at fokus.fraunhofer.de>
>>
>>
>>>wrote:
>>>
>>>
>>>
>>>>Hi Richard,
>>>>
>>>>I will give you some hints about how to do it.
>>>>
>>>>
>>What
>>
>>
>>>>you have to do is to
>>>>gather in location set all addresses where you
>>>>
>>>>
>>want
>>
>>
>>>>to forward the call
>>>>and than just proxy it. So :
>>>> - gather all destination addresses in location
>>>>
>>>>
>>set
>>
>>
>>>> - put 223 and 224 (use location)
>>>> - put all 222 contacts (use lookup)
>>>> - proxy the call
>>>>
>>>>If you have problems generating the script, let me
>>>>know.
>>>>
>>>>Bogdan
>>>>
>>>>
>>>>Richard wrote:
>>>>
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>I'm sorry that I run into so many problems with
>>>>>
>>>>>
>>>>cpl
>>>>
>>>>
>>>>
>>>>>scripts.
>>>>>
>>>>>I want to send a call to multiple phones. For
>>>>>
>>>>>
>>>>example,
>>>>
>>>>
>>>>
>>>>>if there is a call to 222, it lookups the
>>>>>
>>>>>
>>location
>>
>>
>>>>>table and call all registered 222 phones. In
>>>>>addational, call some other numbers 223 and 224.
>>>>>
>>>>>
>>I
>>
>>
>>>>>don't know how to do it in cpled. The closest I
>>>>>
>>>>>
>>>>can
>>>>
>>>>
>>>>
>>>>>get is this script for 222.
>>>>>
>>>>>Can someone show me what's the proper way of
>>>>>
>>>>>
>>doing
>>
>>
>>>>>this?
>>>>>
>>>>>Thanks,
>>>>>Richard
>>>>>
>>>>>
>>>>>========================
>>>>><?xml version="1.0" encoding="UTF-8"?>
>>>>>
>>>>><!DOCTYPE cpl PUBLIC '-//IETF//DTD RFCxxxx CPL
>>>>>1.0//EN' 'cpl.dtd'>
>>>>>
>>>>><cpl>
>>>>> <incoming>
>>>>> <location url="sip:223 at example.org">
>>>>> <proxy>
>>>>> <default>
>>>>> <lookup source="registration" />
>>>>> </default>
>>>>> </proxy>
>>>>> </location>
>>>>> </incoming>
>>>>></cpl>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>__________________________________
>>>>>Do you Yahoo!?
>>>>>Yahoo! Domains – Claim yours for only $14.70/year
>>>>>http://smallbusiness.promotions.yahoo.com/offer
>>>>>
>>>>>_______________________________________________
>>>>>Serusers mailing list
>>>>>serusers at lists.iptel.org
>>>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>>>
>>>>>
>>>
>>>
>>>
>>>__________________________________
>>>Do you Yahoo!?
>>>Yahoo! Domains – Claim yours for only $14.70/year
>>>http://smallbusiness.promotions.yahoo.com/offer
>>>
>>>
>
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Friends. Fun. Try the all-new Yahoo! Messenger.
>http://messenger.yahoo.com/
>
>
>
More information about the sr-users
mailing list