magnussolution / magnusbilling7

MagnusBilling is a fast, secure, efficient, high availability, VOIP Billing.
https://www.magnusbilling.org
GNU Lesser General Public License v3.0
174 stars 106 forks source link

Caller ID set by softphone #375

Closed shahrukhfiaz closed 3 years ago

shahrukhfiaz commented 4 years ago

Hello guys, I have tried everything but could not find the solution of it

I am trying to configure it this way so I can change the CallerID directly from softphone using (Eyebeam, Xlite and Zoiper) by putting desired shown number on display name of softphone settings. but its not passing. please guide me how can i do this?

shahrukhfiaz commented 4 years ago

image

magnussolution commented 4 years ago

hi, you can customize you billing context and set the CALLERID(nun) = CALLERID(name)

shahrukhfiaz commented 4 years ago

hi, you can customize you billing context and set the CALLERID(nun) = CALLERID(name)

where to make these changes please guide would appreciate this

shahrukhfiaz commented 4 years ago

hello I added CALLERID(num) = CALLERID(name) in Context field but when i tried to make a call it said not found on Eyebeam

magnussolution commented 4 years ago

exten => _X.,1,Set(CALLERID(nun)=${CALLERID(name)})

like it

shahrukhfiaz commented 4 years ago

image

When i call any number on softphone it gives not found error

magnussolution commented 4 years ago

no, you need to write your custom context on Asterisk file, extension_magnus.conf

shahrukhfiaz commented 4 years ago

I have tried this but still not working

image

shahrukhfiaz commented 3 years ago

@magnussolution please help

itsshimmer commented 3 years ago

Now set the context in MagnusBilling to the name of your context. Also after setting the CID, forward the call to the billing context.

xceedconnections commented 3 years ago

i added [callerid] exten => _X.,1,Set(CALLERID(nun)=${CALLERID(name)}) Asterisk file, extension_magnus.conf

how to set the context in magnus billing and forward call to the billing context.

please show an example.

foryourhost commented 3 years ago

i already add this

[dincli] exten => _[*0-9].,1,AGI("/var/www/html/mbilling/resources/asterisk/mbilling.php$ same => n,Hangup()

exten => _X.,1,Set(CALLERID(nun)=${CALLERID(name)})

exten => h,1,hangup()

exten => *111,1,VoiceMailMain(${CHANNEL(peername)}@dincli) same => n,Hangup()

but error is happen

Executing [12158664168@dincli:1] Set("SIP/97833-00005160", "CALLERID(nun) =13342342407") in new stack [2021-06-04 18:13:37] ERROR[2008][C-0000798d]: func_callerid.c:1271 callerid_wri te: Unknown callerid data type 'nun'. -- Executing [12158664168@dincli:2] Hangup("SIP/97833-00005160", "") in new stack == Spawn extension (dincli, 12158664168, 2) exited non-zero on 'SIP/97833-0000 5160' -- Executing [h@dincli:1] Hangup("SIP/97833-00005160", "") in new stack == Spawn extension (dincli, h, 1) exited non-zero on 'SIP/97833-00005160'

suman333mondal commented 1 month ago

@magnussolution fix this issue