[Asterisk-Users] ChanIsAvail app setting ${AVAILCHAN} to an unusable value.

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Oct 7 18:06:05 MST 2003


On Sunday 05 October 2003 17:43, Tilghman Lesher wrote:
> 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.

Tested code.

-Tilghman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app_cut.c
Type: text/x-csrc
Size: 3067 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20031007/fabd9271/app_cut.c


More information about the asterisk-users mailing list