[Asterisk-Users] ChanIsAvail app setting ${AVAILCHAN} to an unusable value.
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Sun Oct 5 15:43:16 MST 2003
On Sunday 05 October 2003 16:41, Robert Hajime Lanning wrote:
> I sent this earlier under "Editting variable contents" but no-one
> has responded. So, the subject is now more to the problem, instead
> of the solution I was trying to implement.
>
> ChanIsAvail returns the channel ID plus "-<session>".
>
> How can I edit ${AVAILCHAN} to remove this session ID, so I can use
> its contents in a subsequent Dial statement?
Oh, it's quite simple. You just write your own application to remove
the suffix. Or you wait for someone else to write it.
Untested code. UAYOR.
-Tilghman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app_cut.c
Type: text/x-csrc
Size: 2782 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20031005/07f6f487/app_cut.c
More information about the asterisk-users
mailing list