[asterisk-users] Add SIP Header for 1 SIP peer when calling a group of SIP peers

Barry Flanagan barryf-lists at flanagan.ie
Thu Nov 14 10:45:07 CST 2013


On 14 November 2013 16:35, Jonas Kellens <jonas.kellens at telenet.be> wrote:

>  Hello,
>
> when calling a group of SIP peers like this :
>
> Dial( "SIP/inno0&SIP/inno4&SIP/inno6,30")
>
> is it possible to have a SIP header added for just 1 of these SIP peers,
> like only for SIP/inno0 but not for SIP/inno4 and SIP/inno6 ??
>
>
> I know the function SipAddHeader(), but when I use this in the dialplan
> before the Dial()-command, then the header is added for all the SIP peers
> that are being called.
>
>
> So when calling a group of SIP peers, how can I add an extra SIP header
> for just one of the SIP peers ?
>
>
Hi

You should be able to do this by using a Local channel for the peer you
want to add the header to:

exten => _XXXX,1,Dial(Local/inno0&SIP/inno4&SIP/inno6,30)

exten => inno0,1,SipAddHeader("X-YourHeader")
exten => inno0,2,Dial(SIP/inno0)


Hope this helps.

-Barry Flanagan


>
> Kind regards,
> Jonas.
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131114/4c3bb62c/attachment.html>


More information about the asterisk-users mailing list