Combining Dial G() and b()

I’m using Dial like this

n,Dial(PJSIP/+12345@trunk,300,G(pre-bridge^s^1),b(pre-dial^s^1)

It goes into the G() paths but does not execute b() at all according to the logs. If i remove G() it successfully runs b().

Is it supposed to be possible to combine these?

I’m using b() to add a header on the outbound Dial. Is there another way of doing that?
G() is used to play audio to both parties before bridging them together.

This is incorrect. You have a “,” separating them when they should be combined like:

n,Dial(PJSIP/+12345@trunk,300,G(pre-bridge^s^1)b(pre-dial^s^1)

Oops! :grimacing:

Works perfectly with the correct syntax. Thanks for the amazingly quick help @jcolp!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.