how to put hash in campaign prefix field

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

how to put hash in campaign prefix field

Postby rudra_ach » Fri Nov 10, 2006 7:04 am

Hi,

I've created a sip trunk and my provider wants a prefix 90109#001 before the number.I want to set it on the campaign level in prefix field.But I found the #(hash) it is not taking.Is there any way to put a hash in the campaign prefix.

regards
rudra
rudra_ach
 
Posts: 108
Joined: Fri Jun 23, 2006 11:22 am

Postby mflorell » Fri Nov 10, 2006 10:48 am

It would be easier to do this in the extensions.conf with a substitution.

Putting a hash in a field for a campaign could cause problems in several scripts on the server and client side which is why it is not allowed.
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby rudra_ach » Fri Nov 10, 2006 11:51 am

I am thinking on your point for extensions.conf with a substitution. But I am not able to think. Below is my configuration.

exten => _90109#001.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _90109#001.,2,Dial(SIP/provider1/${EXTEN:1},55,tTo)
exten => _90109#001.,3,Hangup

please help.

Regards.
Rudra.


mflorell wrote:It would be easier to do this in the extensions.conf with a substitution.

Putting a hash in a field for a campaign could cause problems in several scripts on the server and client side which is why it is not allowed.
rudra_ach
 
Posts: 108
Joined: Fri Jun 23, 2006 11:22 am

Postby mflorell » Fri Nov 10, 2006 3:41 pm

try this:

exten => _9NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9NXXNXXXXXX,2,Dial(SIP/provider1/90109#001${EXTEN:1},55,tTo)
exten => _9NXXNXXXXXX,3,Hangup
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: Majestic-12 [Bot] and 68 guests